public class MapBasedGlobalDictionaries extends Object implements GlobalDictionaries
DICT_FILE_EXTENSION| Modifier and Type | Method and Description |
|---|---|
void |
addDerivedValuesToGlobalDictionaries()
This is the third and final step where we complete the global
dictionaries by generating values:
For numeric columns, we generate in order since
we start with a base value.
|
void |
addOrigValueToGlobalDictionary(Object origValue,
String column,
ColumnMetadata columnMetadata,
int cardinality)
First step towards building global dictionary
by inserting the original values from segments
into global dictionary
|
Object |
getDerivedValueForOrigValueSV(String column,
Object origValue) |
Object[] |
getDerivedValuesForOrigValuesMV(String column,
Object[] origMultiValues) |
void |
serialize(String outputDir) |
void |
sortOriginalValuesInGlobalDictionaries()
This is the second step where we complete the global dictionaries
by sorting the original values to get sort order across all segments
|
public void addOrigValueToGlobalDictionary(Object origValue, String column, ColumnMetadata columnMetadata, int cardinality)
addOrigValueToGlobalDictionary in interface GlobalDictionariesorigValue - original valuecolumn - column namecolumnMetadata - column metadatacardinality - total cardinality of columnpublic void sortOriginalValuesInGlobalDictionaries()
sortOriginalValuesInGlobalDictionaries in interface GlobalDictionariespublic void addDerivedValuesToGlobalDictionaries()
addDerivedValuesToGlobalDictionaries in interface GlobalDictionariespublic void serialize(String outputDir) throws Exception
serialize in interface GlobalDictionariesExceptionpublic Object getDerivedValueForOrigValueSV(String column, Object origValue)
getDerivedValueForOrigValueSV in interface GlobalDictionariespublic Object[] getDerivedValuesForOrigValuesMV(String column, Object[] origMultiValues)
getDerivedValuesForOrigValuesMV in interface GlobalDictionariesCopyright © 2018–2020 Apache Software Foundation. All rights reserved.