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.IterOutcome| Modifier and Type | Field and Description |
|---|---|
MappingSet |
COPIER_MAPPING_SET |
MappingSet |
LEFT_MAPPING |
MappingSet |
MAIN_MAPPING |
MappingSet |
RIGHT_MAPPING |
container, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_SIZE| Constructor and Description |
|---|
MergingRecordBatch(FragmentContext context,
MergingReceiverPOP config,
RawFragmentBatchProvider[] fragProviders) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSchema() |
void |
close() |
FragmentContext |
getContext()
Gets the FragmentContext of the current query fragment.
|
int |
getRecordCount()
Gets the number of records that are within this record.
|
BatchSchema |
getSchema()
Gets the current schema of this record batch.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
VectorWrapper<?> |
getValueAccessorById(Class<?> clazz,
int... ids) |
TypedFieldId |
getValueVectorId(SchemaPath path)
Gets the value vector type and ID for the given schema path.
|
WritableBatch |
getWritableBatch()
Gets a writable version of this batch.
|
RecordBatch.IterOutcome |
innerNext() |
Iterator<VectorWrapper<?>> |
iterator() |
void |
kill(boolean sendUpstream)
Informs child nodes that this query should be terminated.
|
protected void |
killIncoming(boolean sendUpstream) |
getOutgoingContainer, getPopConfig, next, next, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutgoingContainer, nextpublic final MappingSet MAIN_MAPPING
public final MappingSet LEFT_MAPPING
public final MappingSet RIGHT_MAPPING
public final MappingSet COPIER_MAPPING_SET
public MergingRecordBatch(FragmentContext 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 #OK_NEW_SCHEMA or #OK.
The schema changes when and only when RecordBatch.next() returns
#OK_NEW_SCHEMA.
getSchema in interface RecordBatchgetSchema in interface VectorAccessiblegetSchema in class AbstractRecordBatch<MergingReceiverPOP>public void buildSchema()
throws SchemaChangeException
buildSchema in class AbstractRecordBatch<MergingReceiverPOP>SchemaChangeExceptionpublic int getRecordCount()
RecordBatchgetRecordCount in interface RecordBatchgetRecordCount in interface VectorAccessiblepublic void kill(boolean sendUpstream)
RecordBatchkill in interface RecordBatchkill in class AbstractRecordBatch<MergingReceiverPOP>protected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractRecordBatch<MergingReceiverPOP>public Iterator<VectorWrapper<?>> iterator()
iterator in interface Iterable<VectorWrapper<?>>iterator in class AbstractRecordBatch<MergingReceiverPOP>public SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblegetSelectionVector2 in class AbstractRecordBatch<MergingReceiverPOP>public SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblegetSelectionVector4 in class AbstractRecordBatch<MergingReceiverPOP>public TypedFieldId getValueVectorId(SchemaPath path)
RecordBatchgetValueVectorId in interface RecordBatchgetValueVectorId in interface VectorAccessiblegetValueVectorId in class AbstractRecordBatch<MergingReceiverPOP>path - The path where the vector should be located.public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... ids)
getValueAccessorById in interface RecordBatchgetValueAccessorById in interface VectorAccessiblegetValueAccessorById in class AbstractRecordBatch<MergingReceiverPOP>public WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchgetWritableBatch in class AbstractRecordBatch<MergingReceiverPOP>public void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<MergingReceiverPOP>Copyright © 2017 The Apache Software Foundation. All rights reserved.