public class ProjectRecordBatch extends AbstractSingleRecordBatch<Project>
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
Modifier and Type | Field and Description |
---|---|
protected List<ValueVector> |
allocationVectors |
protected List<FieldReference> |
complexFieldReferencesList |
protected List<BaseWriter.ComplexWriter> |
complexWriters |
protected ProjectMemoryManager |
memoryManager |
incoming
callBack
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
ProjectRecordBatch(Project pop,
RecordBatch incoming,
FragmentContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addComplexWriter(BaseWriter.ComplexWriter writer) |
protected void |
cancelIncoming() |
protected RecordBatch.IterOutcome |
doWork() |
void |
dump()
Perform dump of this batch's state to logs.
|
protected RecordBatch.IterOutcome |
getFinalOutcome(boolean hasMoreRecordInBoundary)
Based on lastKnownOutcome and if there are more records to be output for
current record boundary detected by EMIT outcome, this method returns EMIT
or OK outcome.
|
VectorContainer |
getOutgoingContainer() |
int |
getRecordCount()
Get the number of records.
|
protected RecordBatch.IterOutcome |
handleNullInput()
Handle Null input specially when Project operator is for query output.
|
RecordBatch.IterOutcome |
innerNext() |
protected boolean |
setupNewSchema() |
getIncoming
getLastKnownOutcome, setLastKnownOutcome
buildSchema, cancel, checkContinue, close, getContainer, getContext, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected List<ValueVector> allocationVectors
protected List<BaseWriter.ComplexWriter> complexWriters
protected List<FieldReference> complexFieldReferencesList
protected ProjectMemoryManager memoryManager
public ProjectRecordBatch(Project pop, RecordBatch incoming, FragmentContext context)
public int getRecordCount()
VectorAccessible
protected void cancelIncoming()
cancelIncoming
in class AbstractUnaryRecordBatch<Project>
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractUnaryRecordBatch<Project>
public VectorContainer getOutgoingContainer()
getOutgoingContainer
in interface RecordBatch
getOutgoingContainer
in class AbstractRecordBatch<Project>
protected RecordBatch.IterOutcome doWork()
doWork
in class AbstractUnaryRecordBatch<Project>
public void addComplexWriter(BaseWriter.ComplexWriter writer)
protected boolean setupNewSchema()
setupNewSchema
in class AbstractUnaryRecordBatch<Project>
protected RecordBatch.IterOutcome handleNullInput()
NONE
directly).
Project operator has to return a batch with schema derived using the following 3 rules:
The batch is constructed with the above rules, and recordCount = 0.
Returned with OK_NEW_SCHEMA
to down-stream operator.
handleNullInput
in class AbstractUnaryRecordBatch<Project>
protected RecordBatch.IterOutcome getFinalOutcome(boolean hasMoreRecordInBoundary)
AbstractSingleRecordBatch
getFinalOutcome
in class AbstractSingleRecordBatch<Project>
public void dump()
RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.