Class TupleState.DictArrayVectorState
java.lang.Object
org.apache.drill.exec.physical.resultSet.impl.TupleState.DictVectorState<RepeatedDictVector>
org.apache.drill.exec.physical.resultSet.impl.TupleState.DictArrayVectorState
- All Implemented Interfaces:
VectorState
- Enclosing class:
TupleState
public static class TupleState.DictArrayVectorState
extends TupleState.DictVectorState<RepeatedDictVector>
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.resultSet.impl.TupleState.DictVectorState
offsets, vector -
Constructor Summary
ConstructorsConstructorDescriptionDictArrayVectorState(RepeatedDictVector vector, VectorState offsets, VectorState dictOffsets) -
Method Summary
Modifier and TypeMethodDescriptionintallocate(int cardinality) Allocate a new vector with the number of elements given.voidclose()Clear the vector(s) associated with this state.voidA batch is being harvested after an overflow.voidrollover(int cardinality) A vector has overflowed.voidA new batch is starting while an look-ahead vector exists.Methods inherited from class org.apache.drill.exec.physical.resultSet.impl.TupleState.DictVectorState
dump, isProjected, offsetVectorState, vector
-
Constructor Details
-
DictArrayVectorState
public DictArrayVectorState(RepeatedDictVector vector, VectorState offsets, VectorState dictOffsets)
-
-
Method Details
-
allocate
public int allocate(int cardinality) Description copied from interface:VectorStateAllocate a new vector with the number of elements given. If the vector is an array, then the cardinality given is the number of arrays.- Specified by:
allocatein interfaceVectorState- Overrides:
allocatein classTupleState.DictVectorState<RepeatedDictVector>- Parameters:
cardinality- number of elements desired in the allocated vector- Returns:
- the number of bytes allocated
-
rollover
public void rollover(int cardinality) Description copied from interface:VectorStateA vector has overflowed. Create a new look-ahead vector of the given cardinality, then copy the overflow values from the main vector to the look-ahead vector.- Specified by:
rolloverin interfaceVectorState- Overrides:
rolloverin classTupleState.DictVectorState<RepeatedDictVector>- Parameters:
cardinality- the number of elements in the new vector. If this vector is an array, then this is the number of arrays
-
harvestWithLookAhead
public void harvestWithLookAhead()Description copied from interface:VectorStateA batch is being harvested after an overflow. Put the full batch back into the main vector so it can be harvested.- Specified by:
harvestWithLookAheadin interfaceVectorState- Overrides:
harvestWithLookAheadin classTupleState.DictVectorState<RepeatedDictVector>
-
startBatchWithLookAhead
public void startBatchWithLookAhead()Description copied from interface:VectorStateA new batch is starting while an look-ahead vector exists. Move the look-ahead buffers into the main vector to prepare for writing the rest of the batch.- Specified by:
startBatchWithLookAheadin interfaceVectorState- Overrides:
startBatchWithLookAheadin classTupleState.DictVectorState<RepeatedDictVector>
-
close
public void close()Description copied from interface:VectorStateClear the vector(s) associated with this state.- Specified by:
closein interfaceVectorState- Overrides:
closein classTupleState.DictVectorState<RepeatedDictVector>
-