Class IndirectContainerAccessor
java.lang.Object
org.apache.drill.exec.physical.impl.protocol.VectorContainerAccessor
org.apache.drill.exec.physical.impl.protocol.IndirectContainerAccessor
- All Implemented Interfaces:
BatchAccessor
Extension of the container accessor that holds an optional selection
vector, presenting the batch row count as the selection vector
count.
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.protocol.VectorContainerAccessor
container
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatch
(RecordBatch batch) Add a record batch, performing schema checks and picking out a selection vector, if provided.void
release()
int
rowCount()
void
void
Methods inherited from class org.apache.drill.exec.physical.impl.protocol.VectorContainerAccessor
addBatch, batchCount, container, getValueAccessorById, getValueVectorId, iterator, schema, schemaVersion, setSchema, writableBatch
-
Constructor Details
-
IndirectContainerAccessor
public IndirectContainerAccessor()
-
-
Method Details
-
addBatch
Add a record batch, performing schema checks and picking out a selection vector, if provided.- Parameters:
batch
- batch of records in record batch format
-
setSelectionVector
-
setSelectionVector
-
selectionVector2
- Specified by:
selectionVector2
in interfaceBatchAccessor
- Overrides:
selectionVector2
in classVectorContainerAccessor
-
selectionVector4
- Specified by:
selectionVector4
in interfaceBatchAccessor
- Overrides:
selectionVector4
in classVectorContainerAccessor
-
rowCount
public int rowCount()- Specified by:
rowCount
in interfaceBatchAccessor
- Overrides:
rowCount
in classVectorContainerAccessor
-
release
public void release()- Specified by:
release
in interfaceBatchAccessor
- Overrides:
release
in classVectorContainerAccessor
-