Class SingleVectorState.OffsetVectorState
java.lang.Object
org.apache.drill.exec.physical.resultSet.impl.SingleVectorState
org.apache.drill.exec.physical.resultSet.impl.SingleVectorState.OffsetVectorState
- All Implemented Interfaces:
VectorState
- Enclosing class:
SingleVectorState
Special case for an offset vector. Offset vectors are managed like any other
vector with respect to overflow and allocation. This means that the loader
classes avoid the use of the RepeatedVector class methods, instead working
with the offsets vector (here) or the values vector to allow the needed
fine control over overflow operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.physical.resultSet.impl.SingleVectorState
SingleVectorState.FixedWidthVectorState, SingleVectorState.IsSetVectorState, SingleVectorState.OffsetVectorState, SingleVectorState.SimpleVectorState, SingleVectorState.VariableWidthVectorState -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.resultSet.impl.SingleVectorState
backupVector, mainVector, writer -
Constructor Summary
ConstructorsConstructorDescriptionOffsetVectorState(WriterEvents writer, ValueVector mainVector, WriterPosition childWriter) -
Method Summary
Modifier and TypeMethodDescriptionintallocateVector(ValueVector toAlloc, int cardinality) protected voidcopyOverflow(int sourceStartIndex, int sourceEndIndex) intvoidsetChildWriter(WriterEvents childWriter) Methods inherited from class org.apache.drill.exec.physical.resultSet.impl.SingleVectorState
allocate, close, dump, harvestWithLookAhead, isProjected, parseVectorType, rollover, startBatchWithLookAhead, vector, vectorState
-
Constructor Details
-
OffsetVectorState
-
-
Method Details
-
setChildWriter
-
allocateVector
- Specified by:
allocateVectorin classSingleVectorState
-
rowStartOffset
public int rowStartOffset() -
copyOverflow
protected void copyOverflow(int sourceStartIndex, int sourceEndIndex) - Specified by:
copyOverflowin classSingleVectorState
-