public abstract static class ParquetValueReaders.StructReader<T,I> extends java.lang.Object implements ParquetValueReader<T>
Modifier | Constructor and Description |
---|---|
protected |
StructReader(java.util.List<org.apache.parquet.schema.Type> types,
java.util.List<ParquetValueReader<?>> readers) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
buildStruct(I struct) |
org.apache.iceberg.parquet.TripleIterator<?> |
column() |
java.util.List<org.apache.iceberg.parquet.TripleIterator<?>> |
columns() |
protected abstract java.lang.Object |
getField(I intermediate,
int pos) |
protected abstract I |
newStructData(T reuse) |
T |
read(T reuse) |
protected abstract void |
set(I struct,
int pos,
java.lang.Object value)
Used to set a struct value by position.
|
protected void |
setBoolean(I struct,
int pos,
boolean value) |
protected void |
setDouble(I struct,
int pos,
double value) |
protected void |
setFloat(I struct,
int pos,
float value) |
protected void |
setInteger(I struct,
int pos,
int value) |
protected void |
setLong(I struct,
int pos,
long value) |
protected void |
setNull(I struct,
int pos) |
void |
setPageSource(org.apache.parquet.column.page.PageReadStore pageStore,
long rowPosition) |
protected StructReader(java.util.List<org.apache.parquet.schema.Type> types, java.util.List<ParquetValueReader<?>> readers)
public final void setPageSource(org.apache.parquet.column.page.PageReadStore pageStore, long rowPosition)
setPageSource
in interface ParquetValueReader<T>
public final org.apache.iceberg.parquet.TripleIterator<?> column()
column
in interface ParquetValueReader<T>
public final T read(T reuse)
read
in interface ParquetValueReader<T>
public java.util.List<org.apache.iceberg.parquet.TripleIterator<?>> columns()
columns
in interface ParquetValueReader<T>
protected abstract java.lang.Object getField(I intermediate, int pos)
protected abstract void set(I struct, int pos, java.lang.Object value)
To avoid boxing, override setInteger(Object, int, int)
and similar methods.
struct
- a struct object created by newStructData(Object)
pos
- the position in the struct to setvalue
- the value to setprotected void setNull(I struct, int pos)
protected void setBoolean(I struct, int pos, boolean value)
protected void setInteger(I struct, int pos, int value)
protected void setLong(I struct, int pos, long value)
protected void setFloat(I struct, int pos, float value)
protected void setDouble(I struct, int pos, double value)