Package org.apache.iceberg.avro
Class ValueReaders.StructReader<S>
java.lang.Object
org.apache.iceberg.avro.ValueReaders.StructReader<S>
- All Implemented Interfaces:
SupportsRowPosition,ValueReader<S>
- Enclosing class:
ValueReaders
public abstract static class ValueReaders.StructReader<S>
extends Object
implements ValueReader<S>, SupportsRowPosition
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStructReader(List<ValueReader<?>> readers, org.apache.avro.Schema schema) protectedStructReader(List<ValueReader<?>> readers, Types.StructType struct, Map<Integer, ?> idToConstant) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectValueReader<?> reader(int pos) protected abstract SreuseOrCreate(Object reuse) protected abstract voidvoidsetRowPositionSupplier(Supplier<Long> posSupplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.avro.ValueReader
skip
-
Constructor Details
-
StructReader
-
StructReader
protected StructReader(List<ValueReader<?>> readers, Types.StructType struct, Map<Integer, ?> idToConstant)
-
-
Method Details
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplierin interfaceSupportsRowPosition
-
reuseOrCreate
-
get
-
set
-
reader
-
read
- Specified by:
readin interfaceValueReader<S>- Throws:
IOException
-