Class BaseDoubleVectorValueSelector

java.lang.Object
org.apache.druid.segment.vector.BaseDoubleVectorValueSelector
All Implemented Interfaces:
VectorSizeInspector, VectorValueSelector

public abstract class BaseDoubleVectorValueSelector extends Object implements VectorValueSelector
  • Field Details

  • Constructor Details

  • Method Details

    • getCurrentVectorSize

      public int getCurrentVectorSize()
      Description copied from interface: VectorSizeInspector
      Returns the current vector size for this cursor. Will never be larger than the max size returned by VectorSizeInspector.getMaxVectorSize().
      Specified by:
      getCurrentVectorSize in interface VectorSizeInspector
    • getMaxVectorSize

      public int getMaxVectorSize()
      Description copied from interface: VectorSizeInspector
      Returns the maximum vector size for this cursor. It will not change for the lifetime of this cursor, and is generally used to allocate scratch arrays for later processing. Will always be greater than zero.
      Specified by:
      getMaxVectorSize in interface VectorSizeInspector
    • getLongVector

      public long[] getLongVector()
      Description copied from interface: VectorValueSelector
      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.
      Specified by:
      getLongVector in interface VectorValueSelector
    • getFloatVector

      public float[] getFloatVector()
      Description copied from interface: VectorValueSelector
      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.
      Specified by:
      getFloatVector in interface VectorValueSelector