Search in sources :

Example 1 with NestedDecoders

use of com.facebook.presto.parquet.batchreader.decoders.Decoders.NestedDecoders in project presto by prestodb.

the class AbstractNestedBatchReader method readNextPage.

protected void readNextPage() {
    remainingCountInPage = 0;
    DataPage page = pageReader.readPage();
    if (page == null) {
        return;
    }
    NestedDecoders nestedDecoders = readNestedPage(page, columnDescriptor, dictionary);
    repetitionLevelDecoder = nestedDecoders.getRepetitionLevelDecoder();
    definitionLevelDecoder = nestedDecoders.getDefinitionLevelDecoder();
    valuesDecoder = nestedDecoders.getValuesDecoder();
    remainingCountInPage = page.getValueCount();
}
Also used : DataPage(com.facebook.presto.parquet.DataPage) NestedDecoders(com.facebook.presto.parquet.batchreader.decoders.Decoders.NestedDecoders)

Aggregations

DataPage (com.facebook.presto.parquet.DataPage)1 NestedDecoders (com.facebook.presto.parquet.batchreader.decoders.Decoders.NestedDecoders)1