public class SortBatch extends AbstractRecordBatch<Sort>
AbstractRecordBatch.BatchStateRecordBatch.IterOutcome| Modifier and Type | Field and Description |
|---|---|
MappingSet |
leftMapping |
MappingSet |
mainMapping |
MappingSet |
rightMapping |
container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_SIZE| Constructor and Description |
|---|
SortBatch(Sort popConfig,
FragmentContext context,
RecordBatch incoming) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static Sorter |
createNewSorter(FragmentContext context,
List<Order.Ordering> orderings,
VectorAccessible batch) |
static Sorter |
createNewSorter(FragmentContext context,
List<Order.Ordering> orderings,
VectorAccessible batch,
MappingSet mainMapping,
MappingSet leftMapping,
MappingSet rightMapping) |
int |
getRecordCount()
Gets the number of records that are within this record.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
WritableBatch |
getWritableBatch()
Gets a writable version of this batch.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
killIncoming(boolean sendUpstream) |
buildSchema, getContext, getOutgoingContainer, getPopConfig, getSchema, getValueAccessorById, getValueVectorId, iterator, kill, next, next, nextpublic final MappingSet mainMapping
public final MappingSet leftMapping
public final MappingSet rightMapping
public SortBatch(Sort popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
RecordBatchpublic SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblegetSelectionVector2 in class AbstractRecordBatch<Sort>public SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblegetSelectionVector4 in class AbstractRecordBatch<Sort>public void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<Sort>public RecordBatch.IterOutcome innerNext()
innerNext in class AbstractRecordBatch<Sort>public static Sorter createNewSorter(FragmentContext context, List<Order.Ordering> orderings, VectorAccessible batch) throws ClassTransformationException, IOException, SchemaChangeException
public static Sorter createNewSorter(FragmentContext context, List<Order.Ordering> orderings, VectorAccessible batch, MappingSet mainMapping, MappingSet leftMapping, MappingSet rightMapping) throws ClassTransformationException, IOException, SchemaChangeException
public WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchgetWritableBatch in class AbstractRecordBatch<Sort>protected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractRecordBatch<Sort>Copyright © 2017 The Apache Software Foundation. All rights reserved.