public class OrderedPartitionRecordBatch extends AbstractRecordBatch<OrderedPartitionSender>
AbstractRecordBatch.BatchStateRecordBatch.IterOutcome| Modifier and Type | Field and Description |
|---|---|
protected RecordBatch |
incoming |
MappingSet |
incomingMapping |
MappingSet |
mainMapping |
static DistributedCache.CacheConfig<String,CachedVectorContainer> |
MULTI_CACHE_CONFIG |
MappingSet |
partitionMapping |
static DistributedCache.CacheConfig<String,CachedVectorContainer> |
SINGLE_CACHE_CONFIG |
container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_SIZE| Constructor and Description |
|---|
OrderedPartitionRecordBatch(OrderedPartitionSender pop,
RecordBatch incoming,
FragmentContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doWork(VectorAccessible batch) |
int |
getRecordCount()
Gets the number of records that are within this record.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
killIncoming(boolean sendUpstream) |
protected void |
setupNewSchema(VectorAccessible batch)
Sets up projection that will transfer all of the columns in batch, and also populate the partition column based on
which partition a record falls into in the partition table
|
buildSchema, getContext, getOutgoingContainer, getPopConfig, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, iterator, kill, next, next, nextpublic static final DistributedCache.CacheConfig<String,CachedVectorContainer> SINGLE_CACHE_CONFIG
public static final DistributedCache.CacheConfig<String,CachedVectorContainer> MULTI_CACHE_CONFIG
public final MappingSet mainMapping
public final MappingSet incomingMapping
public final MappingSet partitionMapping
protected final RecordBatch incoming
public OrderedPartitionRecordBatch(OrderedPartitionSender pop, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryExceptionpublic void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<OrderedPartitionSender>protected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractRecordBatch<OrderedPartitionSender>public RecordBatch.IterOutcome innerNext()
innerNext in class AbstractRecordBatch<OrderedPartitionSender>public int getRecordCount()
RecordBatchprotected void doWork(VectorAccessible batch)
protected void setupNewSchema(VectorAccessible batch) throws SchemaChangeException
batch - SchemaChangeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.