use of org.apache.carbondata.format.ColumnDictionaryChunkMeta in project carbondata by apache.
the class CarbonDictionaryMetadataReaderImpl method readEntryOfDictionaryMetaChunk.
@Override
public CarbonDictionaryColumnMetaChunk readEntryOfDictionaryMetaChunk(long end_Offset) throws IOException {
ColumnDictionaryChunkMeta dictionaryChunkMeta = null;
// open dictionary meta thrift reader
openThriftReader();
// at the completion of while loop we will get the last dictionary chunk entry
while (dictionaryMetadataFileReader.hasNext()) {
// get the thrift object for dictionary chunk
dictionaryChunkMeta = (ColumnDictionaryChunkMeta) dictionaryMetadataFileReader.read();
if (dictionaryChunkMeta.end_offset >= end_Offset) {
break;
}
}
// create a new instance of chunk meta wrapper using thrift object
return getNewInstanceOfCarbonDictionaryColumnMetaChunk(dictionaryChunkMeta);
}
Aggregations