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

public interface VectorAccessible extends Iterable<VectorWrapper<?>>
  • Method Details

    • getValueAccessorById

      VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... fieldIds)
    • getValueVectorId

      TypedFieldId getValueVectorId(SchemaPath path)
      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 of Iterable<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()