Interface DictionaryFactory
-
public interface DictionaryFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDictionaryFactory.Type
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
-
Method Summary
Static Methods Modifier and Type Method Description static IDictionarycBindDictionaries(int nCol, List<IDictionary> dicts)static IDictionarycBindDictionaries(IDictionary left, IDictionary right, int nColLeft, int nColRight)static IDictionarycombineDictionaries(AColGroupCompressed a, AColGroupCompressed b)static IDictionarycombineDictionaries(AColGroupCompressed a, AColGroupCompressed b, HashMapLongInt filter)static IDictionarycombineDictionariesSparse(AColGroupCompressed a, AColGroupCompressed b)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.static IDictionarycombineDictionariesSparse(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.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 IDictionarycreate(ABitmap ubm)static IDictionarycreate(ABitmap ubm, double sparsity)static IDictionarycreate(ABitmap ubm, int defaultIndex, double[] defaultTuple, double sparsity, boolean addZero)static IDictionarycreate(DblArrayCountHashMap map, int nCols, boolean addZeroTuple, double sparsity)static IDictionarycreate(DoubleCountHashMap map)static longgetInMemorySize(int nrValues, int nrColumns, double tupleSparsity, boolean lossy)static IDictionaryread(DataInput in)
-
-
-
Method Detail
-
read
static IDictionary read(DataInput in) throws IOException
- 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
static IDictionary create(ABitmap ubm)
-
create
static IDictionary create(ABitmap ubm, double sparsity)
-
create
static IDictionary create(ABitmap ubm, int defaultIndex, double[] defaultTuple, double sparsity, boolean addZero)
-
create
static IDictionary create(DoubleCountHashMap map)
-
combineDictionaries
static IDictionary combineDictionaries(AColGroupCompressed a, AColGroupCompressed b)
-
combineDictionaries
static IDictionary combineDictionaries(AColGroupCompressed a, AColGroupCompressed b, HashMapLongInt filter)
-
combineDictionariesSparse
static IDictionary combineDictionariesSparse(AColGroupCompressed a, AColGroupCompressed b)
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
static IDictionary combineFullDictionaries(IDictionary a, int nca, IDictionary b, int ncb)
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
static IDictionary combineSDCRightNoFilter(IDictionary a, int nca, IDictionary b, double[] tub)
-
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
static IDictionary combineSDCNoFilter(IDictionary a, double[] tua, IDictionary b, double[] tub)
-
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
static IDictionary cBindDictionaries(int nCol, List<IDictionary> dicts)
-
cBindDictionaries
static IDictionary cBindDictionaries(IDictionary left, IDictionary right, int nColLeft, int nColRight)
-
-