use of org.apache.carbondata.core.reader.CarbonDictionaryMetadataReaderImpl in project carbondata by apache.
the class CarbonDictionaryWriterImplTest method readDictionaryMetadataFile.
/**
* This method will read dictionary metadata file and return the dictionary meta chunks
*
* @return list of dictionary metadata chunks
* @throws IOException read and close method throws IO excpetion
*/
private List<CarbonDictionaryColumnMetaChunk> readDictionaryMetadataFile() throws IOException {
CarbonDictionaryMetadataReaderImpl columnMetadataReaderImpl = new CarbonDictionaryMetadataReaderImpl(this.carbonStorePath, this.carbonTableIdentifier, this.columnIdentifier);
List<CarbonDictionaryColumnMetaChunk> dictionaryMetaChunkList = null;
// read metadata file
try {
dictionaryMetaChunkList = columnMetadataReaderImpl.read();
} finally {
// close the metadata reader
columnMetadataReaderImpl.close();
}
return dictionaryMetaChunkList;
}
Aggregations