public abstract class ContainerState extends Object
The container is responsible for creating new columns in response from a writer listener event. Column creation requires a set of four items:
Modifier and Type | Field and Description |
---|---|
protected org.apache.drill.exec.physical.resultSet.impl.LoaderInternals |
loader |
protected ColumnState |
parentColumn |
protected ProjectionFilter |
projectionSet |
protected ResultVectorCache |
vectorCache
Vector cache for this loader.
|
Constructor and Description |
---|
ContainerState(org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader,
ResultVectorCache vectorCache) |
ContainerState(org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader,
ResultVectorCache vectorCache,
ProjectionFilter projectionSet) |
Modifier and Type | Method and Description |
---|---|
ColumnState |
addColumn(ColumnMetadata columnSchema) |
protected abstract void |
addColumn(ColumnState colState) |
void |
bindColumnState(ColumnState parentState) |
void |
close()
Clean up state (such as backup vectors) associated with the state
for each vector.
|
protected abstract Collection<ColumnState> |
columnStates() |
void |
harvestWithLookAhead()
Writing of a row batch is complete, and an overflow occurred.
|
abstract int |
innerCardinality() |
protected abstract boolean |
isVersioned()
Reports whether this container is subject to version management.
|
protected org.apache.drill.exec.physical.resultSet.impl.LoaderInternals |
loader() |
protected ProjectionFilter |
projection() |
void |
rollover()
A column within the row batch overflowed.
|
void |
startBatch(boolean schemaOnly)
Start a new batch by shifting the overflow buffers back into the main
write vectors and updating the writers.
|
void |
updateCardinality()
In order to allocate the correct-sized vectors, the container must know
its member cardinality: the number of elements in each row.
|
ResultVectorCache |
vectorCache() |
protected final org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader
protected final ProjectionFilter projectionSet
protected ColumnState parentColumn
protected final ResultVectorCache vectorCache
ResultSetOptionBuilder#setVectorCache()
.public ContainerState(org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader, ResultVectorCache vectorCache, ProjectionFilter projectionSet)
public ContainerState(org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader, ResultVectorCache vectorCache)
public void bindColumnState(ColumnState parentState)
public abstract int innerCardinality()
protected abstract void addColumn(ColumnState colState)
protected abstract Collection<ColumnState> columnStates()
protected ProjectionFilter projection()
protected abstract boolean isVersioned()
true
if versionedprotected org.apache.drill.exec.physical.resultSet.impl.LoaderInternals loader()
public ResultVectorCache vectorCache()
public ColumnState addColumn(ColumnMetadata columnSchema)
public void updateCardinality()
public void startBatch(boolean schemaOnly)
public void rollover()
public void harvestWithLookAhead()
public void close()
Copyright © 1970 The Apache Software Foundation. All rights reserved.