T
- public abstract class AbstractUnaryRecordBatch<T extends PhysicalOperator> extends AbstractRecordBatch<T>
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
Modifier and Type | Field and Description |
---|---|
protected SchemaChangeCallBack |
callBack |
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
AbstractUnaryRecordBatch(T popConfig,
FragmentContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelIncoming() |
protected abstract RecordBatch.IterOutcome |
doWork() |
protected abstract RecordBatch |
getIncoming() |
protected RecordBatch.IterOutcome |
getLastKnownOutcome() |
protected RecordBatch.IterOutcome |
handleNullInput()
Default behavior to handle NULL input (aka FAST NONE): incoming return NONE
before return a OK_NEW_SCHEMA: This could happen when the underneath Scan
operators do not produce any batch with schema.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
setLastKnownOutcome(RecordBatch.IterOutcome outcome)
Set's the outcome received with current input batch in processing
|
protected abstract boolean |
setupNewSchema() |
buildSchema, cancel, checkContinue, close, getContainer, getContext, getOutgoingContainer, 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
dump
getRecordCount
forEach, spliterator
protected SchemaChangeCallBack callBack
public AbstractUnaryRecordBatch(T popConfig, FragmentContext context) throws OutOfMemoryException
OutOfMemoryException
protected abstract RecordBatch getIncoming()
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<T extends PhysicalOperator>
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractRecordBatch<T extends PhysicalOperator>
protected abstract boolean setupNewSchema()
protected abstract RecordBatch.IterOutcome doWork()
protected RecordBatch.IterOutcome handleNullInput()
Notice that NULL input is different from input with an empty batch. In the later case, input provides at least a batch, thought it's empty.
This behavior could be override in each individual operator, if the operator's semantics is to inject a batch with schema.
protected RecordBatch.IterOutcome getLastKnownOutcome()
protected void setLastKnownOutcome(RecordBatch.IterOutcome outcome)
outcome
- Copyright © 1970 The Apache Software Foundation. All rights reserved.