public class TopNBatch extends AbstractRecordBatch<TopN>
| Modifier and Type | Class and Description |
|---|---|
static class |
TopNBatch.SimpleSV4RecordBatch |
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomebatchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_ROW_COUNT| Constructor and Description |
|---|
TopNBatch(TopN popConfig,
FragmentContext context,
RecordBatch incoming) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSchema() |
protected void |
cancelIncoming() |
void |
close() |
static MappingSet |
createLeftMappingSet() |
static MappingSet |
createMainMappingSet() |
static PriorityQueue |
createNewPriorityQueue(MappingSet mainMapping,
MappingSet leftMapping,
MappingSet rightMapping,
List<Order.Ordering> orderings,
VectorAccessible batch,
boolean unionTypeEnabled,
boolean codegenDump,
int limit,
BufferAllocator allocator,
BatchSchema.SelectionVectorMode mode,
FragmentContext context) |
static MappingSet |
createRightMappingSet() |
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() |
void |
purgeAndResetPriorityQueue()
Handle schema changes during execution.
|
cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getValueAccessorById, getValueVectorId, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TopNBatch(TopN popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
VectorAccessiblepublic SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblegetSelectionVector2 in class AbstractRecordBatch<TopN>public SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblegetSelectionVector4 in class AbstractRecordBatch<TopN>public void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<TopN>public void buildSchema()
buildSchema in class AbstractRecordBatch<TopN>public RecordBatch.IterOutcome innerNext()
innerNext in class AbstractRecordBatch<TopN>public static MappingSet createMainMappingSet()
public static MappingSet createLeftMappingSet()
public static MappingSet createRightMappingSet()
public static PriorityQueue createNewPriorityQueue(MappingSet mainMapping, MappingSet leftMapping, MappingSet rightMapping, List<Order.Ordering> orderings, VectorAccessible batch, boolean unionTypeEnabled, boolean codegenDump, int limit, BufferAllocator allocator, BatchSchema.SelectionVectorMode mode, FragmentContext context)
public void purgeAndResetPriorityQueue()
public WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchgetWritableBatch in class AbstractRecordBatch<TopN>protected void cancelIncoming()
cancelIncoming in class AbstractRecordBatch<TopN>public void dump()
RecordBatchCopyright © 2021 The Apache Software Foundation. All rights reserved.