public class TopNBatch extends AbstractRecordBatch<TopN>
Modifier and Type | Class and Description |
---|---|
static class |
TopNBatch.SimpleSV4RecordBatch |
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_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, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public TopNBatch(TopN popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryException
public int getRecordCount()
VectorAccessible
public SelectionVector2 getSelectionVector2()
getSelectionVector2
in interface VectorAccessible
getSelectionVector2
in class AbstractRecordBatch<TopN>
public SelectionVector4 getSelectionVector4()
getSelectionVector4
in interface VectorAccessible
getSelectionVector4
in class AbstractRecordBatch<TopN>
public void close()
close
in interface AutoCloseable
close
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()
RecordBatch
getWritableBatch
in interface RecordBatch
getWritableBatch
in class AbstractRecordBatch<TopN>
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<TopN>
public void dump()
RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.