Package org.apache.iceberg.parquet
Class BasePageIterator
java.lang.Object
org.apache.iceberg.parquet.BasePageIterator
- Direct Known Subclasses:
VectorizedPageIterator
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected BasePageIterator.IntIterator
protected final org.apache.parquet.column.ColumnDescriptor
protected org.apache.parquet.column.Dictionary
protected boolean
protected org.apache.parquet.column.page.DataPage
protected BasePageIterator.IntIterator
protected int
protected int
protected org.apache.parquet.column.Encoding
protected org.apache.parquet.column.values.ValuesReader
protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
BasePageIterator
(org.apache.parquet.column.ColumnDescriptor descriptor, String writerVersion) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
hasNext()
protected abstract void
initDataReader
(org.apache.parquet.column.Encoding dataEncoding, org.apache.parquet.bytes.ByteBufferInputStream in, int valueCount) 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) protected abstract void
initDefinitionLevelsReader
(org.apache.parquet.column.page.DataPageV2 dataPageV2, org.apache.parquet.column.ColumnDescriptor descriptor) protected void
initFromPage
(org.apache.parquet.column.page.DataPageV1 initPage) protected void
initFromPage
(org.apache.parquet.column.page.DataPageV2 initPage) protected void
initRepetitionLevelsReader
(org.apache.parquet.column.page.DataPageV1 dataPageV1, org.apache.parquet.column.ColumnDescriptor descriptor, org.apache.parquet.bytes.ByteBufferInputStream in, int count) protected void
initRepetitionLevelsReader
(org.apache.parquet.column.page.DataPageV2 dataPageV2, org.apache.parquet.column.ColumnDescriptor descriptor) protected void
reset()
void
setDictionary
(org.apache.parquet.column.Dictionary dict) void
setPage
(org.apache.parquet.column.page.DataPage page)
-
Field Details
-
desc
protected final org.apache.parquet.column.ColumnDescriptor desc -
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
-
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)
-