Package org.apache.drill.exec.record
Interface VectorAccessible
- All Superinterfaces:
Iterable<VectorWrapper<?>>
- All Known Subinterfaces:
CloseableRecordBatch,RecordBatch
- All Known Implementing Classes:
AbstractBinaryRecordBatch,AbstractHashBinaryRecordBatch,AbstractRecordBatch,AbstractSingleRecordBatch,AbstractTableFunctionRecordBatch,AbstractUnaryRecordBatch,BatchGroup,DrillRecordReader,ExpandableHyperContainer,ExternalSortBatch,FilterRecordBatch,FlattenRecordBatch,HashAggBatch,HashJoinBatch,HashSetOpRecordBatch,InputBatch,InsertWriterRecordBatch,IteratorValidatorBatchIterator,LateralJoinBatch,LimitRecordBatch,MergeJoinBatch,MergingRecordBatch,MetadataControllerBatch,MetadataHandlerBatch,MetadataHashAggBatch,MetadataStreamAggBatch,NestedLoopJoinBatch,OperatorRecordBatch,OrderedPartitionRecordBatch,PartitionerTemplate.OutgoingRecordBatch,PartitionLimitRecordBatch,ProducerConsumerBatch,ProjectRecordBatch,RangePartitionRecordBatch,RecordBatchLoader,RecordIterator,RemovingRecordBatch,RowKeyJoinBatch,RuntimeFilterRecordBatch,ScanBatch,SchemalessBatch,SimpleRecordBatch,SortBatch,SpilledRecordBatch,SpilledRun,StatisticsAggBatch,StatisticsMergeBatch,StatisticsWriterRecordBatch,StreamingAggBatch,TopNBatch,TopNBatch.SimpleSV4RecordBatch,TraceRecordBatch,UnionAllRecordBatch,UnnestRecordBatch,UnorderedReceiverBatch,UnpivotMapsRecordBatch,VectorContainer,WindowDataBatch,WindowFrameRecordBatch,WriterRecordBatch
-
Method Summary
Modifier and TypeMethodDescriptionintGet 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.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getValueAccessorById
-
getValueVectorId
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>.- 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
BatchSchema getSchema()Get the schema of the current RecordBatch. This changes if and only if a *_NEW_SCHEMA IterOutcome is provided.- Returns:
- schema of the current batch
-
getRecordCount
int getRecordCount()Get the number of records.- Returns:
- number of records
-
getSelectionVector2
SelectionVector2 getSelectionVector2() -
getSelectionVector4
SelectionVector4 getSelectionVector4()
-