public class TopNBatch extends AbstractRecordBatch<TopN>
| Modifier and Type | Class and Description |
|---|---|
static class |
TopNBatch.SimpleSV4RecordBatch |
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 |
|---|
TopNBatch(TopN popConfig,
FragmentContext context,
RecordBatch incoming) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSchema() |
void |
close() |
static MappingSet |
createLeftMappingSet() |
static MappingSet |
createMainMappingSet() |
static PriorityQueue |
createNewPriorityQueue(MappingSet mainMapping,
MappingSet leftMapping,
MappingSet rightMapping,
OptionSet optionSet,
FunctionLookupContext functionLookupContext,
CodeCompiler codeCompiler,
List<Order.Ordering> orderings,
VectorAccessible batch,
boolean unionTypeEnabled,
boolean codegenDump,
int limit,
BufferAllocator allocator,
BatchSchema.SelectionVectorMode mode) |
static MappingSet |
createRightMappingSet() |
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) |
void |
purgeAndResetPriorityQueue()
Handle schema changes during execution.
|
getContext, getOutgoingContainer, getPopConfig, getSchema, getValueAccessorById, getValueVectorId, iterator, kill, next, next, nextpublic final MappingSet mainMapping
public final MappingSet leftMapping
public final MappingSet rightMapping
public TopNBatch(TopN popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
RecordBatchpublic 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()
throws SchemaChangeException
buildSchema in class AbstractRecordBatch<TopN>SchemaChangeExceptionpublic 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, OptionSet optionSet, FunctionLookupContext functionLookupContext, CodeCompiler codeCompiler, List<Order.Ordering> orderings, VectorAccessible batch, boolean unionTypeEnabled, boolean codegenDump, int limit, BufferAllocator allocator, BatchSchema.SelectionVectorMode mode) throws ClassTransformationException, IOException, SchemaChangeException
public void purgeAndResetPriorityQueue()
throws SchemaChangeException,
ClassTransformationException,
IOException
public WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchgetWritableBatch in class AbstractRecordBatch<TopN>protected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractRecordBatch<TopN>Copyright © 2017 The Apache Software Foundation. All rights reserved.