Search in sources :

Example 1 with CarbonDictionaryMetadataReaderImpl

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;
}
Also used : CarbonDictionaryMetadataReaderImpl(org.apache.carbondata.core.reader.CarbonDictionaryMetadataReaderImpl) CarbonDictionaryColumnMetaChunk(org.apache.carbondata.core.reader.CarbonDictionaryColumnMetaChunk)

Aggregations

CarbonDictionaryColumnMetaChunk (org.apache.carbondata.core.reader.CarbonDictionaryColumnMetaChunk)1 CarbonDictionaryMetadataReaderImpl (org.apache.carbondata.core.reader.CarbonDictionaryMetadataReaderImpl)1