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.BatchState
RecordBatch.IterOutcome
batchStatsContext, container, oContext, popConfig, state, stats, unionTypeEnabled
MAX_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, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContainer, getOutgoingContainer, getValueAccessorById, getValueVectorId, getWritableBatch, next
getSelectionVector2, getSelectionVector4
forEach, iterator, spliterator
public MergingRecordBatch(ExchangeFragmentContext context, MergingReceiverPOP config, RawFragmentBatchProvider[] fragProviders) throws OutOfMemoryException
OutOfMemoryException
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractRecordBatch<MergingReceiverPOP>
public FragmentContext getContext()
RecordBatch
getContext
in interface RecordBatch
getContext
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 RecordBatch
getSchema
in interface VectorAccessible
getSchema
in class AbstractRecordBatch<MergingReceiverPOP>
public void buildSchema()
buildSchema
in class AbstractRecordBatch<MergingReceiverPOP>
public int getRecordCount()
VectorAccessible
getRecordCount
in interface VectorAccessible
public 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 RecordBatch
cancel
in class AbstractRecordBatch<MergingReceiverPOP>
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<MergingReceiverPOP>
public void close()
close
in interface AutoCloseable
close
in class AbstractRecordBatch<MergingReceiverPOP>
public void dump()
RecordBatch
dump
in interface RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.