public class MergingRecordBatch extends AbstractRecordBatch<MergingReceiverPOP> implements RecordBatch
| Modifier and Type | Class and Description |
|---|---|
static class |
MergingRecordBatch.Metric |
class |
MergingRecordBatch.Node
A Node contains a reference to a single value in a specific incoming batch.
|
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomebatchStatsContext, container, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_ROW_COUNT| Constructor and Description |
|---|
MergingRecordBatch(ExchangeFragmentContext context,
MergingReceiverPOP config,
RawFragmentBatchProvider[] fragProviders) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSchema() |
void |
cancel()
Informs child operators that no more data is needed.
|
protected void |
cancelIncoming() |
void |
close() |
void |
dump()
Perform dump of this batch's state to logs.
|
FragmentContext |
getContext()
Gets the FragmentContext of the current query fragment.
|
int |
getRecordCount()
Get the number of records.
|
BatchSchema |
getSchema()
Gets the current schema of this record batch.
|
RecordBatch.IterOutcome |
innerNext() |
checkContinue, getContainer, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainer, getOutgoingContainer, getValueAccessorById, getValueVectorId, getWritableBatch, nextgetSelectionVector2, getSelectionVector4forEach, iterator, spliteratorpublic MergingRecordBatch(ExchangeFragmentContext context, MergingReceiverPOP config, RawFragmentBatchProvider[] fragProviders) throws OutOfMemoryException
OutOfMemoryExceptionpublic RecordBatch.IterOutcome innerNext()
innerNext in class AbstractRecordBatch<MergingReceiverPOP>public FragmentContext getContext()
RecordBatchgetContext in interface RecordBatchgetContext in class AbstractRecordBatch<MergingReceiverPOP>public BatchSchema getSchema()
RecordBatch
May be called only when the most recent call to RecordBatch.next(), if any,
returned RecordBatch.IterOutcome.OK_NEW_SCHEMA or RecordBatch.IterOutcome.OK.
The schema changes when and only when RecordBatch.next() returns
RecordBatch.IterOutcome.OK_NEW_SCHEMA.
getSchema in interface RecordBatchgetSchema in interface VectorAccessiblegetSchema in class AbstractRecordBatch<MergingReceiverPOP>public void buildSchema()
buildSchema in class AbstractRecordBatch<MergingReceiverPOP>public int getRecordCount()
VectorAccessiblegetRecordCount in interface VectorAccessiblepublic void cancel()
RecordBatch
The operator which triggers the cancel MUST send a NONE
status downstream, or throw an exception. It is not legal to
call next() on an operator after calling its
cancel() method.
cancel in interface RecordBatchcancel in class AbstractRecordBatch<MergingReceiverPOP>protected void cancelIncoming()
cancelIncoming in class AbstractRecordBatch<MergingReceiverPOP>public void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<MergingReceiverPOP>public void dump()
RecordBatchdump in interface RecordBatchCopyright © 2021 The Apache Software Foundation. All rights reserved.