protected CarbonDictionaryColumnMetaChunk readLastChunkFromDictionaryMetadataFile(DictionaryColumnUniqueIdentifier dictionaryColumnUniqueIdentifier) throws IOException {
  DictionaryService dictService=CarbonCommonFactory.getDictionaryService();
  CarbonDictionaryMetadataReader columnMetadataReaderImpl=dictService.getDictionaryMetadataReader(dictionaryColumnUniqueIdentifier.getCarbonTableIdentifier(),dictionaryColumnUniqueIdentifier.getColumnIdentifier(),carbonStorePath);
  CarbonDictionaryColumnMetaChunk carbonDictionaryColumnMetaChunk=null;
  try {
    carbonDictionaryColumnMetaChunk=columnMetadataReaderImpl.readLastEntryOfDictionaryMetaChunk();
  }
  finally {
    columnMetadataReaderImpl.close();
  }
  return carbonDictionaryColumnMetaChunk;
}

protected CarbonDictionaryColumnMetaChunk readLastChunkFromDictionaryMetadataFile ( DictionaryColumnUniqueIdentifier dictionaryColumnUniqueIdentifier ) throws IOException { DictionaryService dictService = CarbonCommonFactory . getDictionaryService ( ) ; CarbonDictionaryMetadataReader columnMetadataReaderImpl = dictService . getDictionaryMetadataReader ( dictionaryColumnUniqueIdentifier . getCarbonTableIdentifier ( ) , dictionaryColumnUniqueIdentifier . getColumnIdentifier ( ) , carbonStorePath ) ; CarbonDictionaryColumnMetaChunk carbonDictionaryColumnMetaChunk = null ; try { carbonDictionaryColumnMetaChunk = columnMetadataReaderImpl . readLastEntryOfDictionaryMetaChunk ( ) ; } finally { columnMetadataReaderImpl . close ( ) ; } return carbonDictionaryColumnMetaChunk ; }
this method will read dictionary metadata file and return the dictionary meta chunks
