public interface ColumnReader
consume()
.
Depending on the type and the encoding of the column only a subset of the get* methods are implemented. Dictionary specific methods enable the upper layers to read the dictionary IDs without decoding the data. In particular the Converter will decode the strings in the dictionary only once and iterate on the dictionary IDs instead of the values.
Each iteration looks at the current definition level and value as well as the next repetition level:
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.
will be removed in 2.0.0; Total values might not be able to be counted before reading the values (e.g.
in case of column index based filtering)
|
void |
skip()
Skip the current value
|
void |
writeCurrentValueToConverter()
writes the current value to the converter
|
@Deprecated long getTotalValueCount()
void consume()
int getCurrentRepetitionLevel()
int getCurrentDefinitionLevel()
void writeCurrentValueToConverter()
void skip()
int getCurrentValueDictionaryID()
int getInteger()
boolean getBoolean()
long getLong()
Binary getBinary()
float getFloat()
double getDouble()
ColumnDescriptor getDescriptor()
Copyright © 2023 The Apache Software Foundation. All rights reserved.