Interface VectorValueSelector

All Superinterfaces:
VectorSizeInspector
All Known Implementing Classes:
BaseDoubleVectorValueSelector, BaseFloatVectorValueSelector, BaseLongVectorValueSelector, ExpressionVectorValueSelector, NestedFieldVirtualColumn.RawFieldVectorObjectSelector, NilVectorSelector

public interface VectorValueSelector extends VectorSizeInspector
Vectorized selector for primitive columns.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Get the current vector, casting to doubles as necessary.
    float[]
    Get the current vector, casting to floats as necessary.
    long[]
    Get the current vector, casting to longs as necessary.
    boolean[]
    Gets a vector of booleans signifying which rows are null and which are not (true for null).

    Methods inherited from interface org.apache.druid.segment.vector.VectorSizeInspector

    getCurrentVectorSize, getMaxVectorSize
  • Method Details

    • getLongVector

      long[] getLongVector()
      Get the current vector, casting to longs as necessary. The array will be reused, so it is not a good idea to retain a reference to it.
    • getFloatVector

      float[] getFloatVector()
      Get the current vector, casting to floats as necessary. The array will be reused, so it is not a good idea to retain a reference to it.
    • getDoubleVector

      double[] getDoubleVector()
      Get the current vector, casting to doubles as necessary. The array will be reused, so it is not a good idea to retain a reference to it.
    • getNullVector

      @Nullable boolean[] getNullVector()
      Gets a vector of booleans signifying which rows are null and which are not (true for null). Returns null if it is known that there are no nulls in the vector, possibly because the column is non-nullable.