public interface VectorState
The data model is the following:
Result Set Vector
Loader <--> State <--> Vectors
Events from the row set loader deal with allocation, roll-over,
harvesting completed batches and so on. Events from the writer,
via the tuple model deal with adding columns and column
overflow.| 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.
|
<T extends ValueVector> |
vector()
Underlying vector: the one presented to the consumer of the
result set loader.
|
int allocate(int cardinality)
cardinality - number of elements desired in the allocated
vectorvoid rollover(int cardinality)
cardinality - the number of elements in the new vector. If this
vector is an array, then this is the number of arraysvoid harvestWithLookAhead()
void startBatchWithLookAhead()
void close()
<T extends ValueVector> T vector()
boolean isProjected()
void dump(HierarchicalFormatter format)
Copyright © 2021 The Apache Software Foundation. All rights reserved.