Interface DictionaryFactory
public interface DictionaryFactory
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic IDictionarycBindDictionaries(int nCol, List<IDictionary> dicts) static IDictionarycBindDictionaries(IDictionary left, IDictionary right, int nColLeft, int nColRight) static IDictionarystatic IDictionarystatic IDictionaryCombine the dictionaries assuming a sparse combination where each dictionary can be a SDC containing a default element that have to be introduced into the combined dictionary.static IDictionaryCombine the dictionaries assuming a sparse combination where each dictionary can be a SDC containing a default element that have to be introduced into the combined dictionary.static IDictionarycombineFullDictionaries(IDictionary a, int nca, IDictionary b, int ncb) Combine the dictionaries as if the dictionaries contain the full spectrum of the combined data.static IDictionarycombineFullDictionaries(IDictionary a, int nca, IDictionary b, int ncb, HashMapLongInt filter) Combine the dictionaries as if the dictionaries only contain the values in the specified filter.static IDictionarycombineFullDictionaries(IDictionary a, IColIndex ai, int nca, IDictionary b, IColIndex bi, int ncb, HashMapLongInt filter) static IDictionarycombineFullDictionaries(IDictionary a, IColIndex ai, IDictionary b, IColIndex bi, HashMapLongInt filter) static IDictionarycombineSDCFilter(IDictionary a, double[] tua, IDictionary b, double[] tub, HashMapLongInt filter) static IDictionarycombineSDCFilter(IDictionary a, double[] tua, IColIndex ai, IDictionary b, double[] tub, IColIndex bi, HashMapLongInt filter) static IDictionarycombineSDCNoFilter(IDictionary a, double[] tua, IDictionary b, double[] tub) static IDictionarycombineSDCNoFilter(IDictionary a, double[] tua, IColIndex ai, IDictionary b, double[] tub, IColIndex bi) static IDictionarycombineSDCRight(IDictionary a, int nca, IDictionary b, double[] tub, HashMapLongInt filter) static IDictionarycombineSDCRight(IDictionary a, IColIndex ai, int nca, IDictionary b, double[] tub, IColIndex bi, HashMapLongInt filter) static IDictionarycombineSDCRight(IDictionary a, IColIndex ai, IDictionary b, double[] tub, IColIndex bi, HashMapLongInt filter) static IDictionarycombineSDCRightNoFilter(IDictionary a, int nca, IDictionary b, double[] tub) static IDictionarycombineSDCRightNoFilter(IDictionary a, IColIndex ai, int nca, IDictionary b, double[] tub, IColIndex bi) static IDictionarystatic IDictionarystatic IDictionarystatic IDictionarycreate(DblArrayCountHashMap map, int nCols, boolean addZeroTuple, double sparsity) static IDictionarycreate(DoubleCountHashMap map) static longgetInMemorySize(int nrValues, int nrColumns, double tupleSparsity, boolean lossy) static IDictionary
-
Field Details
-
LOG
static final org.apache.commons.logging.Log LOG
-
-
Method Details
-
read
- Throws:
IOException
-
getInMemorySize
static long getInMemorySize(int nrValues, int nrColumns, double tupleSparsity, boolean lossy) -
create
static IDictionary create(DblArrayCountHashMap map, int nCols, boolean addZeroTuple, double sparsity) -
create
-
create
-
create
static IDictionary create(ABitmap ubm, int defaultIndex, double[] defaultTuple, double sparsity, boolean addZero) -
create
-
combineDictionaries
-
combineDictionaries
static IDictionary combineDictionaries(AColGroupCompressed a, AColGroupCompressed b, HashMapLongInt filter) -
combineDictionariesSparse
Combine the dictionaries assuming a sparse combination where each dictionary can be a SDC containing a default element that have to be introduced into the combined dictionary.- Parameters:
a- A Dictionary can be SDC or constb- A Dictionary can be Const or SDC.- Returns:
- The combined dictionary
-
combineDictionariesSparse
static IDictionary combineDictionariesSparse(AColGroupCompressed a, AColGroupCompressed b, HashMapLongInt filter) Combine the dictionaries assuming a sparse combination where each dictionary can be a SDC containing a default element that have to be introduced into the combined dictionary.- Parameters:
a- A Dictionary can be SDC or constb- A Dictionary can be Const or SDCfilter- A filter to remove elements in the combined dictionary- Returns:
- The combined dictionary
-
combineFullDictionaries
Combine the dictionaries as if the dictionaries contain the full spectrum of the combined data.- Parameters:
a- Left side dictionarynca- Number of columns left dictionaryb- Right side dictionaryncb- Number of columns right dictionary- Returns:
- A combined dictionary
-
combineFullDictionaries
static IDictionary combineFullDictionaries(IDictionary a, IColIndex ai, IDictionary b, IColIndex bi, HashMapLongInt filter) -
combineFullDictionaries
static IDictionary combineFullDictionaries(IDictionary a, int nca, IDictionary b, int ncb, HashMapLongInt filter) Combine the dictionaries as if the dictionaries only contain the values in the specified filter.- Parameters:
a- Left side dictionarynca- Number of columns left dictionaryb- Right side dictionaryncb- Number of columns right dictionaryfilter- The mapping filter to not include all possible combinations in the output, this filter is allowed to be null, that means the output is defaulting back to a full combine- Returns:
- A combined dictionary
-
combineFullDictionaries
static IDictionary combineFullDictionaries(IDictionary a, IColIndex ai, int nca, IDictionary b, IColIndex bi, int ncb, HashMapLongInt filter) -
combineSDCRightNoFilter
-
combineSDCRightNoFilter
static IDictionary combineSDCRightNoFilter(IDictionary a, IColIndex ai, int nca, IDictionary b, double[] tub, IColIndex bi) -
combineSDCRight
static IDictionary combineSDCRight(IDictionary a, IColIndex ai, IDictionary b, double[] tub, IColIndex bi, HashMapLongInt filter) -
combineSDCRight
static IDictionary combineSDCRight(IDictionary a, int nca, IDictionary b, double[] tub, HashMapLongInt filter) -
combineSDCRight
static IDictionary combineSDCRight(IDictionary a, IColIndex ai, int nca, IDictionary b, double[] tub, IColIndex bi, HashMapLongInt filter) -
combineSDCNoFilter
-
combineSDCNoFilter
static IDictionary combineSDCNoFilter(IDictionary a, double[] tua, IColIndex ai, IDictionary b, double[] tub, IColIndex bi) -
combineSDCFilter
static IDictionary combineSDCFilter(IDictionary a, double[] tua, IDictionary b, double[] tub, HashMapLongInt filter) -
combineSDCFilter
static IDictionary combineSDCFilter(IDictionary a, double[] tua, IColIndex ai, IDictionary b, double[] tub, IColIndex bi, HashMapLongInt filter) -
cBindDictionaries
-
cBindDictionaries
static IDictionary cBindDictionaries(IDictionary left, IDictionary right, int nColLeft, int nColRight)
-