public class ExternalSortBatch extends AbstractRecordBatch<ExternalSort>
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalSortBatch.Metric |
AbstractRecordBatch.BatchStateRecordBatch.IterOutcome| Modifier and Type | Field and Description |
|---|---|
static String |
INTERRUPTION_AFTER_SETUP |
static String |
INTERRUPTION_AFTER_SORT |
static String |
INTERRUPTION_WHILE_SPILLING |
container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_SIZE| Constructor and Description |
|---|
ExternalSortBatch(ExternalSort popConfig,
FragmentContext context,
RecordBatch incoming) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSchema() |
void |
close() |
SingleBatchSorter |
createNewSorter(FragmentContext context,
VectorAccessible batch) |
int |
getRecordCount()
Gets the number of records that are within this record.
|
SelectionVector4 |
getSelectionVector4() |
WritableBatch |
getWritableBatch()
Gets a writable version of this batch.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
killIncoming(boolean sendUpstream) |
BatchGroup |
mergeAndSpill(LinkedList<BatchGroup> batchGroups) |
getContext, getOutgoingContainer, getPopConfig, getSchema, getSelectionVector2, getValueAccessorById, getValueVectorId, iterator, kill, next, next, nextpublic static final String INTERRUPTION_AFTER_SORT
public static final String INTERRUPTION_AFTER_SETUP
public static final String INTERRUPTION_WHILE_SPILLING
public ExternalSortBatch(ExternalSort popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
RecordBatchpublic SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblegetSelectionVector4 in class AbstractRecordBatch<ExternalSort>public void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<ExternalSort>public void buildSchema()
throws SchemaChangeException
buildSchema in class AbstractRecordBatch<ExternalSort>SchemaChangeExceptionpublic RecordBatch.IterOutcome innerNext()
innerNext in class AbstractRecordBatch<ExternalSort>public BatchGroup mergeAndSpill(LinkedList<BatchGroup> batchGroups) throws SchemaChangeException
SchemaChangeExceptionpublic SingleBatchSorter createNewSorter(FragmentContext context, VectorAccessible batch) throws ClassTransformationException, IOException, SchemaChangeException
public WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchgetWritableBatch in class AbstractRecordBatch<ExternalSort>protected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractRecordBatch<ExternalSort>Copyright © 2017 The Apache Software Foundation. All rights reserved.