Class ZeroDefinitionLevelDecoder

java.lang.Object
io.trino.parquet.reader.flat.ZeroDefinitionLevelDecoder
All Implemented Interfaces:
FlatDefinitionLevelDecoder

public class ZeroDefinitionLevelDecoder extends Object implements FlatDefinitionLevelDecoder
  • Constructor Details

    • ZeroDefinitionLevelDecoder

      public ZeroDefinitionLevelDecoder()
  • Method Details

    • init

      public void init(io.airlift.slice.Slice input)
      Specified by:
      init in interface FlatDefinitionLevelDecoder
    • readNext

      public int readNext(boolean[] values, int offset, int length)
      Description copied from interface: FlatDefinitionLevelDecoder
      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.
      Specified by:
      readNext in interface FlatDefinitionLevelDecoder
    • skip

      public int skip(int length)
      Description copied from interface: FlatDefinitionLevelDecoder
      Skip 'length' values and return the number of non-nulls encountered
      Specified by:
      skip in interface FlatDefinitionLevelDecoder