Class BasePageIterator

java.lang.Object
org.apache.iceberg.parquet.BasePageIterator
Direct Known Subclasses:
VectorizedPageIterator

public abstract class BasePageIterator extends Object
  • Field Details

    • desc

      protected final org.apache.parquet.column.ColumnDescriptor desc
    • writerVersion

      protected final String writerVersion
    • hasNext

      protected boolean hasNext
    • triplesRead

      protected int triplesRead
    • currentDL

      protected int currentDL
    • currentRL

      protected int currentRL
    • dictionary

      protected org.apache.parquet.column.Dictionary dictionary
    • page

      protected org.apache.parquet.column.page.DataPage page
    • triplesCount

      protected int triplesCount
    • valueEncoding

      protected org.apache.parquet.column.Encoding valueEncoding
    • definitionLevels

      protected BasePageIterator.IntIterator definitionLevels
    • repetitionLevels

      protected BasePageIterator.IntIterator repetitionLevels
    • values

      protected org.apache.parquet.column.values.ValuesReader values
  • Constructor Details

    • BasePageIterator

      protected BasePageIterator(org.apache.parquet.column.ColumnDescriptor descriptor, String writerVersion)
  • Method Details

    • reset

      protected void reset()
    • initDataReader

      protected abstract void initDataReader(org.apache.parquet.column.Encoding dataEncoding, org.apache.parquet.bytes.ByteBufferInputStream in, int valueCount)
    • initDefinitionLevelsReader

      protected abstract void initDefinitionLevelsReader(org.apache.parquet.column.page.DataPageV1 dataPageV1, org.apache.parquet.column.ColumnDescriptor descriptor, org.apache.parquet.bytes.ByteBufferInputStream in, int count) throws IOException
      Throws:
      IOException
    • initDefinitionLevelsReader

      protected abstract void initDefinitionLevelsReader(org.apache.parquet.column.page.DataPageV2 dataPageV2, org.apache.parquet.column.ColumnDescriptor descriptor) throws IOException
      Throws:
      IOException
    • initRepetitionLevelsReader

      protected void initRepetitionLevelsReader(org.apache.parquet.column.page.DataPageV1 dataPageV1, org.apache.parquet.column.ColumnDescriptor descriptor, org.apache.parquet.bytes.ByteBufferInputStream in, int count) throws IOException
      Throws:
      IOException
    • initRepetitionLevelsReader

      protected void initRepetitionLevelsReader(org.apache.parquet.column.page.DataPageV2 dataPageV2, org.apache.parquet.column.ColumnDescriptor descriptor) throws IOException
      Throws:
      IOException
    • currentPageCount

      public int currentPageCount()
    • hasNext

      public boolean hasNext()
    • setPage

      public void setPage(org.apache.parquet.column.page.DataPage page)
    • initFromPage

      protected void initFromPage(org.apache.parquet.column.page.DataPageV1 initPage)
    • initFromPage

      protected void initFromPage(org.apache.parquet.column.page.DataPageV2 initPage)
    • setDictionary

      public void setDictionary(org.apache.parquet.column.Dictionary dict)