public class ProjectRecordBatch extends AbstractSingleRecordBatch<Project>
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomecallBack, incoming, outOfMemorycontainer, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_SIZE| Constructor and Description |
|---|
ProjectRecordBatch(Project pop,
RecordBatch incoming,
FragmentContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComplexWriter(BaseWriter.ComplexWriter writer) |
protected RecordBatch.IterOutcome |
doWork() |
VectorContainer |
getOutgoingContainer() |
int |
getRecordCount()
Gets the number of records that are within this record.
|
protected RecordBatch.IterOutcome |
handleNullInput()
Handle Null input specially when Project operator is for query output.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
killIncoming(boolean sendUpstream) |
protected boolean |
setupNewSchema() |
getSchemabuildSchema, close, getContext, getPopConfig, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, iterator, kill, next, next, nextpublic ProjectRecordBatch(Project pop, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
RecordBatchprotected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractSingleRecordBatch<Project>public RecordBatch.IterOutcome innerNext()
innerNext in class AbstractSingleRecordBatch<Project>public VectorContainer getOutgoingContainer()
getOutgoingContainer in interface RecordBatchgetOutgoingContainer in class AbstractRecordBatch<Project>protected RecordBatch.IterOutcome doWork()
doWork in class AbstractSingleRecordBatch<Project>public void addComplexWriter(BaseWriter.ComplexWriter writer)
protected boolean setupNewSchema()
throws SchemaChangeException
setupNewSchema in class AbstractSingleRecordBatch<Project>SchemaChangeExceptionprotected RecordBatch.IterOutcome handleNullInput()
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 AbstractSingleRecordBatch<Project>Copyright © 2017 The Apache Software Foundation. All rights reserved.