Class SortImpl.SingleBatchResults
java.lang.Object
org.apache.drill.exec.physical.impl.xsort.SortImpl.SingleBatchResults
- All Implemented Interfaces:
SortImpl.SortResults
- Enclosing class:
- SortImpl
Return results for a single input batch. No merge is needed;
the original (sorted) input batch is simply passed as the result.
Note that this version requires replacing the operator output
container with the batch container. (Vector ownership transfer
was already done when accepting the input batch.)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
Container into which results are delivered.int
getSv2()
getSv4()
boolean
next()
void
updateOutputContainer
(VectorContainer container, SelectionVector4 sv4, RecordBatch.IterOutcome outcome, BatchSchema schema)
-
Constructor Details
-
SingleBatchResults
-
-
Method Details
-
next
public boolean next()- Specified by:
next
in interfaceSortImpl.SortResults
-
close
public void close()- Specified by:
close
in interfaceSortImpl.SortResults
-
getBatchCount
public int getBatchCount()- Specified by:
getBatchCount
in interfaceSortImpl.SortResults
-
getRecordCount
public int getRecordCount()- Specified by:
getRecordCount
in interfaceSortImpl.SortResults
-
getSv4
- Specified by:
getSv4
in interfaceSortImpl.SortResults
-
getSv2
- Specified by:
getSv2
in interfaceSortImpl.SortResults
-
getContainer
Description copied from interface:SortImpl.SortResults
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.- Specified by:
getContainer
in interfaceSortImpl.SortResults
- Returns:
-
updateOutputContainer
public void updateOutputContainer(VectorContainer container, SelectionVector4 sv4, RecordBatch.IterOutcome outcome, BatchSchema schema) - Specified by:
updateOutputContainer
in interfaceSortImpl.SortResults
-