use of org.apache.carbondata.format.LocalDictionaryChunkMeta in project carbondata by apache.
the class ColumnPageEncoder method encodeDictionary.
/**
* Below method to encode the dictionary page
* @param dictionaryPage
* dictionary column page
* @return local dictionary chunk
* @throws IOException
* Problem in encoding
*/
public LocalDictionaryChunk encodeDictionary(ColumnPage dictionaryPage) throws IOException {
LocalDictionaryChunk localDictionaryChunk = new LocalDictionaryChunk();
localDictionaryChunk.setDictionary_data(encodeData(dictionaryPage));
LocalDictionaryChunkMeta localDictionaryChunkMeta = new LocalDictionaryChunkMeta();
localDictionaryChunkMeta.setEncoders(getEncodingList());
localDictionaryChunkMeta.setEncoder_meta(buildEncoderMeta(dictionaryPage));
localDictionaryChunk.setDictionary_meta(localDictionaryChunkMeta);
return localDictionaryChunk;
}
Aggregations