private List<ColumnDictionaryChunk> readDictionaryFile(long dictionaryStartOffset,int dictionaryChunkCountToBeRead) throws IOException {
  List<ColumnDictionaryChunk> dictionaryChunks=new ArrayList<ColumnDictionaryChunk>(dictionaryChunkCountToBeRead);
  dictionaryFileReader.setReadOffset(dictionaryStartOffset);
  while (dictionaryFileReader.hasNext() && dictionaryChunks.size() != dictionaryChunkCountToBeRead) {
    dictionaryChunks.add((ColumnDictionaryChunk)dictionaryFileReader.read());
  }
  return dictionaryChunks;
}

private List < ColumnDictionaryChunk > readDictionaryFile ( long dictionaryStartOffset , int dictionaryChunkCountToBeRead ) throws IOException { List < ColumnDictionaryChunk > dictionaryChunks = new ArrayList < ColumnDictionaryChunk > ( dictionaryChunkCountToBeRead ) ; dictionaryFileReader . setReadOffset ( dictionaryStartOffset ) ; while ( dictionaryFileReader . hasNext ( ) && dictionaryChunks . size ( ) != dictionaryChunkCountToBeRead ) { dictionaryChunks . add ( ( ColumnDictionaryChunk ) dictionaryFileReader . read ( ) ) ; } return dictionaryChunks ; }
this method will read the dictionary file and return the list of dictionary thrift object
