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
Modifier and TypeClassDescriptionstatic class
We'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_MAPPING
Fields inherited from class org.apache.drill.exec.physical.impl.xsort.BaseWrapper
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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
generateComparisons
Methods 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()
-