Class WindowDataBatch
java.lang.Object
org.apache.drill.exec.physical.impl.window.WindowDataBatch
- All Implemented Interfaces:
Iterable<VectorWrapper<?>>
,VectorAccessible
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
Get the number of records.Get the schema of the current RecordBatch.getValueAccessorById
(Class<?> clazz, int... fieldIds) getValueVectorId
(SchemaPath path) Get the value vector type and id for the given schema path.iterator()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
WindowDataBatch
-
-
Method Details
-
getContext
-
getContainer
-
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessible
Get the number of records.- Specified by:
getRecordCount
in interfaceVectorAccessible
- Returns:
- number of records
-
getValueAccessorById
- Specified by:
getValueAccessorById
in interfaceVectorAccessible
-
getValueVectorId
Description copied from interface:VectorAccessible
Get the value vector type and id for the given schema path. The TypedFieldId should store a fieldId which is the same as the ordinal position of the field within the Iterator provided this classes implementation ofIterable<ValueVector>
.
- Specified by:
getValueVectorId
in interfaceVectorAccessible
- Parameters:
path
- the path where the vector should be located.- Returns:
- the local field id associated with this vector. If no field matches this path, this will return a null TypedFieldId
-
getSchema
Description copied from interface:VectorAccessible
Get the schema of the current RecordBatch. This changes if and only if a *_NEW_SCHEMA IterOutcome is provided.- Specified by:
getSchema
in interfaceVectorAccessible
- Returns:
- schema of the current batch
-
iterator
- Specified by:
iterator
in interfaceIterable<VectorWrapper<?>>
-
getSelectionVector2
- Specified by:
getSelectionVector2
in interfaceVectorAccessible
-
getSelectionVector4
- Specified by:
getSelectionVector4
in interfaceVectorAccessible
-
clear
public void clear() -
toString
-