Package org.apache.iceberg.avro
Class ValueReaders.PlannedStructReader<S>
- java.lang.Object
-
- org.apache.iceberg.avro.ValueReaders.PlannedStructReader<S>
-
- All Implemented Interfaces:
SupportsRowPosition,ValueReader<S>
- Enclosing class:
- ValueReaders
public abstract static class ValueReaders.PlannedStructReader<S> extends java.lang.Object implements ValueReader<S>, SupportsRowPosition
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlannedStructReader(java.util.List<Pair<java.lang.Integer,ValueReader<?>>> readPlan)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Objectget(S struct, int pos)Sread(org.apache.avro.io.Decoder decoder, java.lang.Object reuse)protected abstract SreuseOrCreate(java.lang.Object reuse)protected abstract voidset(S struct, int pos, java.lang.Object value)voidsetRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)voidskip(org.apache.avro.io.Decoder decoder)
-
-
-
Constructor Detail
-
PlannedStructReader
protected PlannedStructReader(java.util.List<Pair<java.lang.Integer,ValueReader<?>>> readPlan)
-
-
Method Detail
-
setRowPositionSupplier
public void setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
- Specified by:
setRowPositionSupplierin interfaceSupportsRowPosition
-
reuseOrCreate
protected abstract S reuseOrCreate(java.lang.Object reuse)
-
get
protected abstract java.lang.Object get(S struct, int pos)
-
set
protected abstract void set(S struct, int pos, java.lang.Object value)
-
read
public S read(org.apache.avro.io.Decoder decoder, java.lang.Object reuse) throws java.io.IOException
- Specified by:
readin interfaceValueReader<S>- Throws:
java.io.IOException
-
skip
public void skip(org.apache.avro.io.Decoder decoder) throws java.io.IOException- Specified by:
skipin interfaceValueReader<S>- Throws:
java.io.IOException
-
-