public class ColumnReaderImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ValuesReader |
dataColumn |
| Constructor and Description |
|---|
ColumnReaderImpl(ColumnDescriptor path,
PageReader pageReader,
PrimitiveConverter converter,
VersionParser.ParsedVersion writerVersion)
creates a reader for triplets
|
| Modifier and Type | Method and Description |
|---|---|
void |
consume()
Consume the current triplet, moving to the next value.
|
Binary |
getBinary() |
boolean |
getBoolean() |
int |
getCurrentDefinitionLevel() |
int |
getCurrentRepetitionLevel()
must return 0 when isFullyConsumed() == true
|
int |
getCurrentValueDictionaryID()
available when the underlying encoding is dictionary based
|
ColumnDescriptor |
getDescriptor() |
double |
getDouble() |
float |
getFloat() |
int |
getInteger() |
long |
getLong() |
long |
getTotalValueCount()
Deprecated.
|
void |
readValue()
Reads the value into the binding.
|
void |
skip()
Skip the current value
|
void |
writeCurrentValueToConverter()
writes the current value to the converter
|
protected ValuesReader dataColumn
public ColumnReaderImpl(ColumnDescriptor path, PageReader pageReader, PrimitiveConverter converter, VersionParser.ParsedVersion writerVersion)
path - the descriptor for the corresponding columnpageReader - the underlying store to read fromconverter - a converter that materializes the values in this column in the current recordwriterVersion - writer version string from the Parquet file being readpublic void writeCurrentValueToConverter()
writeCurrentValueToConverter in interface ColumnReaderColumnReader.writeCurrentValueToConverter()public int getCurrentValueDictionaryID()
ColumnReadergetCurrentValueDictionaryID in interface ColumnReaderpublic int getInteger()
getInteger in interface ColumnReaderColumnReader.getInteger()public boolean getBoolean()
getBoolean in interface ColumnReaderColumnReader.getBoolean()public long getLong()
getLong in interface ColumnReaderColumnReader.getLong()public Binary getBinary()
getBinary in interface ColumnReaderColumnReader.getBinary()public float getFloat()
getFloat in interface ColumnReaderColumnReader.getFloat()public double getDouble()
getDouble in interface ColumnReaderColumnReader.getDouble()public int getCurrentRepetitionLevel()
getCurrentRepetitionLevel in interface ColumnReaderColumnReader.getCurrentRepetitionLevel()public ColumnDescriptor getDescriptor()
getDescriptor in interface ColumnReaderColumnReader.getDescriptor()public void readValue()
public void skip()
skip in interface ColumnReaderColumnReader.skip()public int getCurrentDefinitionLevel()
getCurrentDefinitionLevel in interface ColumnReaderColumnReader.getCurrentDefinitionLevel()public void consume()
consume in interface ColumnReaderColumnReader.consume()@Deprecated public long getTotalValueCount()
getTotalValueCount in interface ColumnReaderColumnReader.getTotalValueCount()Copyright © 2024 The Apache Software Foundation. All rights reserved.