Class InputBatch
java.lang.Object
org.apache.drill.exec.physical.impl.xsort.BatchGroup
org.apache.drill.exec.physical.impl.xsort.InputBatch
- All Implemented Interfaces:
AutoCloseable
,Iterable<VectorWrapper<?>>
,VectorAccessible
The input batch group gathers batches buffered in memory before
spilling. The structure of the data is:
- Contains a single batch received from the upstream (input) operator.
- Associated selection vector that provides a sorted indirection to the values in the batch.
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.xsort.BatchGroup
allocator, currentContainer, mergeIndex, schema
-
Constructor Summary
ConstructorDescriptionInputBatch
(VectorContainer container, SelectionVector2 sv2, BufferAllocator allocator, long dataSize) -
Method Summary
Methods inherited from class org.apache.drill.exec.physical.impl.xsort.BatchGroup
closeAll, getContainer, getSchema, getSelectionVector2, getSelectionVector4, getUnfilteredRecordCount, getValueAccessorById, getValueVectorId, iterator, setSchema
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
InputBatch
public InputBatch(VectorContainer container, SelectionVector2 sv2, BufferAllocator allocator, long dataSize)
-
-
Method Details
-
getSv2
-
getDataSize
public long getDataSize() -
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessible
Get the number of records.- Specified by:
getRecordCount
in interfaceVectorAccessible
- Overrides:
getRecordCount
in classBatchGroup
- Returns:
- number of records
-
getNextIndex
public int getNextIndex()- Overrides:
getNextIndex
in classBatchGroup
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classBatchGroup
- Throws:
IOException
-