Package io.trino.parquet.reader.flat
Interface FlatDefinitionLevelDecoder
- All Known Implementing Classes:
NullsDecoder,ZeroDefinitionLevelDecoder
public interface FlatDefinitionLevelDecoder
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic FlatDefinitionLevelDecodergetFlatDefinitionLevelDecoder(int maxDefinitionLevel) voidinit(io.airlift.slice.Slice input) intreadNext(boolean[] values, int offset, int length) Populate 'values' with true for nulls and return the number of non-nulls encountered.intskip(int length) Skip 'length' values and return the number of non-nulls encountered
-
Method Details
-
init
void init(io.airlift.slice.Slice input) -
readNext
int readNext(boolean[] values, int offset, int length) Populate 'values' with true for nulls and return the number of non-nulls encountered. 'values' array is assumed to be empty at the start of reading a batch, i.e. contain only false values. -
skip
int skip(int length) Skip 'length' values and return the number of non-nulls encountered -
getFlatDefinitionLevelDecoder
-