Package org.apache.iceberg.orc
Class OrcValueReaders.StructReader<T>
java.lang.Object
org.apache.iceberg.orc.OrcValueReaders.StructReader<T>
- All Implemented Interfaces:
OrcValueReader<T>
- Enclosing class:
OrcValueReaders
public abstract static class OrcValueReaders.StructReader<T>
extends Object
implements OrcValueReader<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStructReader(List<OrcValueReader<?>> readers, Types.StructType struct, Map<Integer, ?> idToConstant) Deprecated.protectedStructReader(org.apache.orc.TypeDescription orcType, List<OrcValueReader<?>> readers, Types.StructType struct, Map<Integer, ?> idToConstant) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tcreate()nonNullRead(org.apache.orc.storage.ql.exec.vector.ColumnVector vector, int row) reader(int pos) protected abstract voidvoidsetBatchContext(long batchOffsetInFile) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.orc.OrcValueReader
read
-
Constructor Details
-
StructReader
@Deprecated protected StructReader(List<OrcValueReader<?>> readers, Types.StructType struct, Map<Integer, ?> idToConstant) Deprecated.UseStructReader(TypeDescription, List, Types.StructType, Map)instead. This constructor uses position-based binding which may cause field misalignment in MOR scenarios. This doesn't work lineage scenarios.- Parameters:
readers- readers for each fieldstruct- struct typeidToConstant- constant values by field id
-
StructReader
protected StructReader(org.apache.orc.TypeDescription orcType, List<OrcValueReader<?>> readers, Types.StructType struct, Map<Integer, ?> idToConstant)
-
-
Method Details
-
create
-
set
-
reader
-
nonNullRead
- Specified by:
nonNullReadin interfaceOrcValueReader<T>
-
setBatchContext
public void setBatchContext(long batchOffsetInFile) - Specified by:
setBatchContextin interfaceOrcValueReader<T>
-
StructReader(TypeDescription, List, Types.StructType, Map)instead.