Package org.apache.iceberg.parquet
Class ParquetValueReaders.StructReader<T,I>
java.lang.Object
org.apache.iceberg.parquet.ParquetValueReaders.StructReader<T,I>
- All Implemented Interfaces:
ParquetValueReader<T>
- Enclosing class:
ParquetValueReaders
public abstract static class ParquetValueReaders.StructReader<T,I>
extends Object
implements ParquetValueReader<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
StructReader
(List<org.apache.parquet.schema.Type> types, List<ParquetValueReader<?>> readers) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
buildStruct
(I struct) final org.apache.iceberg.parquet.TripleIterator
<?> column()
List
<org.apache.iceberg.parquet.TripleIterator<?>> columns()
protected abstract Object
protected abstract I
newStructData
(T reuse) final T
protected abstract void
Used to set a struct value by position.protected void
setBoolean
(I struct, int pos, boolean value) protected void
protected void
protected void
setInteger
(I struct, int pos, int value) protected void
protected void
final void
setPageSource
(org.apache.parquet.column.page.PageReadStore pageStore, long rowPosition)
-
Constructor Details
-
StructReader
protected StructReader(List<org.apache.parquet.schema.Type> types, List<ParquetValueReader<?>> readers)
-
-
Method Details
-
setPageSource
public final void setPageSource(org.apache.parquet.column.page.PageReadStore pageStore, long rowPosition) - Specified by:
setPageSource
in interfaceParquetValueReader<T>
-
column
public final org.apache.iceberg.parquet.TripleIterator<?> column()- Specified by:
column
in interfaceParquetValueReader<T>
-
read
- Specified by:
read
in interfaceParquetValueReader<T>
-
columns
- Specified by:
columns
in interfaceParquetValueReader<T>
-
newStructData
-
getField
-
buildStruct
-
set
Used to set a struct value by position.To avoid boxing, override
setInteger(Object, int, int)
and similar methods.- Parameters:
struct
- a struct object created bynewStructData(Object)
pos
- the position in the struct to setvalue
- the value to set
-
setNull
-
setBoolean
-
setInteger
-
setLong
-
setFloat
-
setDouble
-