public abstract static class ValueReaders.PlannedStructReader<S> extends java.lang.Object implements ValueReader<S>, SupportsRowPosition
| Modifier | Constructor and Description |
|---|---|
protected |
PlannedStructReader(java.util.List<Pair<java.lang.Integer,ValueReader<?>>> readPlan) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
get(S struct,
int pos) |
S |
read(org.apache.avro.io.Decoder decoder,
java.lang.Object reuse) |
protected abstract S |
reuseOrCreate(java.lang.Object reuse) |
protected abstract void |
set(S struct,
int pos,
java.lang.Object value) |
void |
setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier) |
void |
skip(org.apache.avro.io.Decoder decoder) |
protected PlannedStructReader(java.util.List<Pair<java.lang.Integer,ValueReader<?>>> readPlan)
public void setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
setRowPositionSupplier in interface SupportsRowPositionprotected abstract S reuseOrCreate(java.lang.Object reuse)
protected abstract java.lang.Object get(S struct, int pos)
protected abstract void set(S struct, int pos, java.lang.Object value)
public S read(org.apache.avro.io.Decoder decoder, java.lang.Object reuse) throws java.io.IOException
read in interface ValueReader<S>java.io.IOExceptionpublic void skip(org.apache.avro.io.Decoder decoder)
throws java.io.IOException
skip in interface ValueReader<S>java.io.IOException