Class PriorityQueueCopierWrapper
java.lang.Object
org.apache.drill.exec.physical.impl.xsort.BaseWrapper
org.apache.drill.exec.physical.impl.xsort.BaseSortWrapper
org.apache.drill.exec.physical.impl.xsort.PriorityQueueCopierWrapper
Manages a
PriorityQueueCopier instance produced from code generation.
Provides a wrapper around a copier "session" to simplify reading batches
from the copier.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWe've gathered a set of batches, each of which has been sorted. -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.xsort.BaseSortWrapper
LEFT_MAPPING, MAIN_MAPPING, RIGHT_MAPPINGFields inherited from class org.apache.drill.exec.physical.impl.xsort.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getCopier(VectorAccessible batch) startMerge(BatchSchema schema, List<? extends BatchGroup> batchGroupList, VectorContainer outputContainer, int targetRecordCount, VectorInitializer allocHelper) Start a merge operation using the specified vector container.Methods inherited from class org.apache.drill.exec.physical.impl.xsort.BaseSortWrapper
generateComparisonsMethods inherited from class org.apache.drill.exec.physical.impl.xsort.BaseWrapper
getInstance
-
Constructor Details
-
PriorityQueueCopierWrapper
-
-
Method Details
-
getCopier
-
startMerge
public PriorityQueueCopierWrapper.BatchMerger startMerge(BatchSchema schema, List<? extends BatchGroup> batchGroupList, VectorContainer outputContainer, int targetRecordCount, VectorInitializer allocHelper) Start a merge operation using the specified vector container. Used for the final merge operation.- Parameters:
schema-batchGroupList-outputContainer-targetRecordCount-allocHelper-- Returns:
-
getAllocator
-
close
public void close()
-