Interface SortImpl.SortResults
- All Known Implementing Classes:
MergeSortWrapper,PriorityQueueCopierWrapper.BatchMerger,SortImpl.EmptyResults,SortImpl.SingleBatchResults
- Enclosing class:
SortImpl
public static interface SortImpl.SortResults
Iterates over the final sorted results. Implemented differently
depending on whether the results are in-memory or spilled to
disk.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intContainer into which results are delivered.intgetSv2()getSv4()booleannext()voidupdateOutputContainer(VectorContainer container, SelectionVector4 sv4, RecordBatch.IterOutcome outcome, BatchSchema schema)
-
Method Details
-
getContainer
VectorContainer getContainer()Container into which results are delivered. May the the original operator container, or may be a different one. This is the container that should be sent downstream. This is a fixed value for all returned results.- Returns:
-
next
boolean next() -
close
void close() -
getBatchCount
int getBatchCount() -
getRecordCount
int getRecordCount() -
getSv2
SelectionVector2 getSv2() -
getSv4
SelectionVector4 getSv4() -
updateOutputContainer
void updateOutputContainer(VectorContainer container, SelectionVector4 sv4, RecordBatch.IterOutcome outcome, BatchSchema schema)
-