public static class TupleState.MapVectorState extends Object implements VectorState
Constructor and Description |
---|
MapVectorState(AbstractMapVector mapVector,
VectorState offsets) |
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.)
|
VectorState |
offsetVectorState() |
void |
rollover(int cardinality)
A vector has overflowed.
|
void |
startBatchWithLookAhead()
A new batch is starting while an look-ahead vector exists.
|
AbstractMapVector |
vector()
Underlying vector: the one presented to the consumer of the
result set loader.
|
public MapVectorState(AbstractMapVector mapVector, VectorState offsets)
public int allocate(int cardinality)
VectorState
allocate
in interface VectorState
cardinality
- number of elements desired in the allocated
vectorpublic void rollover(int cardinality)
VectorState
rollover
in interface VectorState
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
public void startBatchWithLookAhead()
VectorState
startBatchWithLookAhead
in interface VectorState
public void close()
VectorState
close
in interface VectorState
public AbstractMapVector vector()
VectorState
vector
in interface VectorState
public VectorState offsetVectorState()
public boolean isProjected()
VectorState
isProjected
in interface VectorState
public void dump(HierarchicalFormatter format)
dump
in interface VectorState
Copyright © 1970 The Apache Software Foundation. All rights reserved.