Package io.trino.parquet.reader.flat
Class ZeroDefinitionLevelDecoder
java.lang.Object
io.trino.parquet.reader.flat.ZeroDefinitionLevelDecoder
- All Implemented Interfaces:
FlatDefinitionLevelDecoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.parquet.reader.flat.FlatDefinitionLevelDecoder
FlatDefinitionLevelDecoder.DefinitionLevelDecoderProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(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
-
Constructor Details
-
ZeroDefinitionLevelDecoder
public ZeroDefinitionLevelDecoder()
-
-
Method Details
-
init
public void init(io.airlift.slice.Slice input) - Specified by:
initin interfaceFlatDefinitionLevelDecoder
-
readNext
public int readNext(boolean[] values, int offset, int length) Description copied from interface:FlatDefinitionLevelDecoderPopulate '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.- Specified by:
readNextin interfaceFlatDefinitionLevelDecoder
-
skip
public int skip(int length) Description copied from interface:FlatDefinitionLevelDecoderSkip 'length' values and return the number of non-nulls encountered- Specified by:
skipin interfaceFlatDefinitionLevelDecoder
-