Class ColumnState.BaseContainerColumnState
java.lang.Object
org.apache.drill.exec.physical.resultSet.impl.ColumnState
org.apache.drill.exec.physical.resultSet.impl.ColumnState.BaseContainerColumnState
- Direct Known Subclasses:
RepeatedListState.RepeatedListColumnState,TupleState.DictColumnState,TupleState.MapColumnState,UnionState.UnionColumnState
- Enclosing class:
ColumnState
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.physical.resultSet.impl.ColumnState
ColumnState.BaseContainerColumnState, ColumnState.PrimitiveColumnState, ColumnState.State -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.resultSet.impl.ColumnState
addVersion, cardinality, loader, outputIndex, state, vectorState, writer -
Constructor Summary
ConstructorsConstructorDescriptionBaseContainerColumnState(org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader, AbstractObjectWriter writer, VectorState vectorState) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()abstract ContainerStatevoidWriting of a row batch is complete.voidrollover()A column within the row batch overflowed.voidstartBatch(boolean schemaOnly) Prepare the column for a new row batch after overflow on the previous batch.voidupdateCardinality(int cardinality) Methods inherited from class org.apache.drill.exec.physical.resultSet.impl.ColumnState
allocateVectors, buildOutput, dump, innerCardinality, isProjected, outerCardinality, outputSchema, schema, vector, vectorState, writer
-
Constructor Details
-
BaseContainerColumnState
public BaseContainerColumnState(org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader, AbstractObjectWriter writer, VectorState vectorState)
-
-
Method Details
-
container
-
updateCardinality
public void updateCardinality(int cardinality) - Overrides:
updateCardinalityin classColumnState
-
startBatch
public void startBatch(boolean schemaOnly) Description copied from class:ColumnStatePrepare the column for a new row batch after overflow on the previous batch. Restore the look-ahead buffer to the active vector so we start writing where we left off.- Overrides:
startBatchin classColumnState
-
rollover
public void rollover()Description copied from class:ColumnStateA column within the row batch overflowed. Prepare to absorb the rest of the in-flight row by rolling values over to a new vector, saving the complete vector for later. This column could have a value for the overflow row, or for some previous row, depending on exactly when and where the overflow occurs.- Overrides:
rolloverin classColumnState
-
harvestWithLookAhead
public void harvestWithLookAhead()Description copied from class:ColumnStateWriting of a row batch is complete. Prepare the vector for harvesting to send downstream. If this batch encountered overflow, set aside the look-ahead vector and put the full vector buffer back into the active vector.- Overrides:
harvestWithLookAheadin classColumnState
-
close
public void close()- Overrides:
closein classColumnState
-