Package org.apache.parquet.column.impl
Class ColumnReaderImpl
java.lang.Object
org.apache.parquet.column.impl.ColumnReaderImpl
- All Implemented Interfaces:
ColumnReader
ColumnReader implementation for the scenario when column indexes are not used (all values are read)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionColumnReaderImpl(ColumnDescriptor path, PageReader pageReader, PrimitiveConverter converter, org.apache.parquet.VersionParser.ParsedVersion writerVersion) creates a reader for triplets -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume()Consume the current triplet, moving to the next value.booleanintintmust return 0 when isFullyConsumed() == trueintavailable when the underlying encoding is dictionary baseddoublefloatgetFloat()intlonggetLong()longDeprecated.voidReads the value into the binding.voidskip()Skip the current valuevoidwrites the current value to the converter
-
Field Details
-
dataColumn
-
-
Constructor Details
-
ColumnReaderImpl
public ColumnReaderImpl(ColumnDescriptor path, PageReader pageReader, PrimitiveConverter converter, org.apache.parquet.VersionParser.ParsedVersion writerVersion) creates a reader for triplets- Parameters:
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 read
-
-
Method Details
-
writeCurrentValueToConverter
public void writeCurrentValueToConverter()writes the current value to the converter- Specified by:
writeCurrentValueToConverterin interfaceColumnReader- See Also:
-
getCurrentValueDictionaryID
public int getCurrentValueDictionaryID()Description copied from interface:ColumnReaderavailable when the underlying encoding is dictionary based- Specified by:
getCurrentValueDictionaryIDin interfaceColumnReader- Returns:
- the dictionary id for the current value
-
getInteger
public int getInteger()- Specified by:
getIntegerin interfaceColumnReader- Returns:
- the current value
- See Also:
-
getBoolean
public boolean getBoolean()- Specified by:
getBooleanin interfaceColumnReader- Returns:
- the current value
- See Also:
-
getLong
public long getLong()- Specified by:
getLongin interfaceColumnReader- Returns:
- the current value
- See Also:
-
getBinary
- Specified by:
getBinaryin interfaceColumnReader- Returns:
- the current value
- See Also:
-
getFloat
public float getFloat()- Specified by:
getFloatin interfaceColumnReader- Returns:
- the current value
- See Also:
-
getDouble
public double getDouble()- Specified by:
getDoublein interfaceColumnReader- Returns:
- the current value
- See Also:
-
getCurrentRepetitionLevel
public int getCurrentRepetitionLevel()must return 0 when isFullyConsumed() == true- Specified by:
getCurrentRepetitionLevelin interfaceColumnReader- Returns:
- the repetition level for the current value
- See Also:
-
getDescriptor
- Specified by:
getDescriptorin interfaceColumnReader- Returns:
- Descriptor of the column.
- See Also:
-
readValue
public void readValue()Reads the value into the binding. -
skip
public void skip()Skip the current value- Specified by:
skipin interfaceColumnReader- See Also:
-
getCurrentDefinitionLevel
public int getCurrentDefinitionLevel()- Specified by:
getCurrentDefinitionLevelin interfaceColumnReader- Returns:
- the definition level for the current value
- See Also:
-
consume
public void consume()Consume the current triplet, moving to the next value.- Specified by:
consumein interfaceColumnReader- See Also:
-
getTotalValueCount
Deprecated.- Specified by:
getTotalValueCountin interfaceColumnReader- Returns:
- the totalCount of values to be consumed
- See Also:
-