public static class UnionState.UnionVectorState extends Object implements VectorState
UnionState class. The union vector itself is just a
holder; it has no state to be managed.| Constructor and Description |
|---|
UnionVectorState(org.apache.drill.exec.vector.complex.UnionVector vector,
UnionWriterImpl unionWriter) |
| Modifier and Type | Method and Description |
|---|---|
int |
allocate(int cardinality)
Allocate a new vector with the number of elements given.
|
void |
close()
Clear the vector(s) associated with this state.
|
void |
dump(HierarchicalFormatter format) |
void |
harvestWithLookAhead()
A batch is being harvested after an overflow.
|
boolean |
isProjected()
Report whether this column is projected (has materialized vectors),
or is unprojected (has no materialized backing.)
|
void |
rollover(int cardinality)
A vector has overflowed.
|
void |
startBatchWithLookAhead()
A new batch is starting while an look-ahead vector exists.
|
org.apache.drill.exec.vector.complex.UnionVector |
vector()
Underlying vector: the one presented to the consumer of the
result set loader.
|
public UnionVectorState(org.apache.drill.exec.vector.complex.UnionVector vector,
UnionWriterImpl unionWriter)
public int allocate(int cardinality)
VectorStateallocate in interface VectorStatecardinality - number of elements desired in the allocated
vectorpublic void rollover(int cardinality)
VectorStaterollover in interface VectorStatecardinality - the number of elements in the new vector. If this
vector is an array, then this is the number of arrayspublic void harvestWithLookAhead()
VectorStateharvestWithLookAhead in interface VectorStatepublic void startBatchWithLookAhead()
VectorStatestartBatchWithLookAhead in interface VectorStatepublic void close()
VectorStateclose in interface VectorStatepublic org.apache.drill.exec.vector.complex.UnionVector vector()
VectorStatevector in interface VectorStatepublic boolean isProjected()
VectorStateisProjected in interface VectorStatepublic void dump(HierarchicalFormatter format)
dump in interface VectorStateCopyright © 2021 The Apache Software Foundation. All rights reserved.