Search in sources :

Example 1 with LocalDictionaryChunkMeta

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;
}
Also used : LocalDictionaryChunk(org.apache.carbondata.format.LocalDictionaryChunk) LocalDictionaryChunkMeta(org.apache.carbondata.format.LocalDictionaryChunkMeta)

Aggregations

LocalDictionaryChunk (org.apache.carbondata.format.LocalDictionaryChunk)1 LocalDictionaryChunkMeta (org.apache.carbondata.format.LocalDictionaryChunkMeta)1