public class SortBatch extends AbstractRecordBatch<Sort>
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
SortBatch(Sort popConfig,
FragmentContext context,
RecordBatch incoming) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelIncoming() |
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) |
void |
dump()
Perform dump of this batch's state to logs.
|
int |
getRecordCount()
Get the number of records.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
WritableBatch |
getWritableBatch()
Gets a writable version of this batch.
|
RecordBatch.IterOutcome |
innerNext() |
buildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getValueAccessorById, getValueVectorId, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SortBatch(Sort popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryException
public int getRecordCount()
VectorAccessible
public SelectionVector2 getSelectionVector2()
getSelectionVector2
in interface VectorAccessible
getSelectionVector2
in class AbstractRecordBatch<Sort>
public SelectionVector4 getSelectionVector4()
getSelectionVector4
in interface VectorAccessible
getSelectionVector4
in class AbstractRecordBatch<Sort>
public void close()
close
in interface AutoCloseable
close
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)
public static Sorter createNewSorter(FragmentContext context, List<Order.Ordering> orderings, VectorAccessible batch, MappingSet mainMapping, MappingSet leftMapping, MappingSet rightMapping)
public WritableBatch getWritableBatch()
RecordBatch
getWritableBatch
in interface RecordBatch
getWritableBatch
in class AbstractRecordBatch<Sort>
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<Sort>
public void dump()
RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.