public static class TupleState.DictArrayVectorState extends TupleState.DictVectorState<RepeatedDictVector>
offsets, vector
Constructor and Description |
---|
DictArrayVectorState(RepeatedDictVector vector,
VectorState offsets,
VectorState dictOffsets) |
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 |
harvestWithLookAhead()
A batch is being harvested after an overflow.
|
void |
rollover(int cardinality)
A vector has overflowed.
|
void |
startBatchWithLookAhead()
A new batch is starting while an look-ahead vector exists.
|
dump, isProjected, offsetVectorState, vector
public DictArrayVectorState(RepeatedDictVector vector, VectorState offsets, VectorState dictOffsets)
public int allocate(int cardinality)
VectorState
allocate
in interface VectorState
allocate
in class TupleState.DictVectorState<RepeatedDictVector>
cardinality
- number of elements desired in the allocated
vectorpublic void rollover(int cardinality)
VectorState
rollover
in interface VectorState
rollover
in class TupleState.DictVectorState<RepeatedDictVector>
cardinality
- the number of elements in the new vector. If this
vector is an array, then this is the number of arrayspublic void harvestWithLookAhead()
VectorState
harvestWithLookAhead
in interface VectorState
harvestWithLookAhead
in class TupleState.DictVectorState<RepeatedDictVector>
public void startBatchWithLookAhead()
VectorState
startBatchWithLookAhead
in interface VectorState
startBatchWithLookAhead
in class TupleState.DictVectorState<RepeatedDictVector>
public void close()
VectorState
close
in interface VectorState
close
in class TupleState.DictVectorState<RepeatedDictVector>
Copyright © 1970 The Apache Software Foundation. All rights reserved.