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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intContainer into which results are delivered.intgetSv2()getSv4()booleannext()voidupdateOutputContainer(VectorContainer container, SelectionVector4 sv4, RecordBatch.IterOutcome outcome, BatchSchema schema)
-
Constructor Details
-
SingleBatchResults
-
-
Method Details
-
next
public boolean next()- Specified by:
nextin interfaceSortImpl.SortResults
-
close
public void close()- Specified by:
closein interfaceSortImpl.SortResults
-
getBatchCount
public int getBatchCount()- Specified by:
getBatchCountin interfaceSortImpl.SortResults
-
getRecordCount
public int getRecordCount()- Specified by:
getRecordCountin interfaceSortImpl.SortResults
-
getSv4
- Specified by:
getSv4in interfaceSortImpl.SortResults
-
getSv2
- Specified by:
getSv2in interfaceSortImpl.SortResults
-
getContainer
Description copied from interface:SortImpl.SortResultsContainer 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:
getContainerin interfaceSortImpl.SortResults- Returns:
-
updateOutputContainer
public void updateOutputContainer(VectorContainer container, SelectionVector4 sv4, RecordBatch.IterOutcome outcome, BatchSchema schema) - Specified by:
updateOutputContainerin interfaceSortImpl.SortResults
-