Package org.apache.druid.segment.vector
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 Summary
Fields Modifier and Type Field Description protected ReadableVectorOffsetoffset
-
Constructor Summary
Constructors Constructor Description BaseDoubleVectorValueSelector(ReadableVectorOffset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentVectorSize()Returns the current vector size for this cursor.float[]getFloatVector()Get the current vector, casting to floats as necessary.long[]getLongVector()Get the current vector, casting to longs as necessary.intgetMaxVectorSize()Returns the maximum vector size for this cursor.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.vector.VectorValueSelector
getDoubleVector, getNullVector
-
-
-
-
Field Detail
-
offset
protected final ReadableVectorOffset offset
-
-
Constructor Detail
-
BaseDoubleVectorValueSelector
public BaseDoubleVectorValueSelector(ReadableVectorOffset offset)
-
-
Method Detail
-
getCurrentVectorSize
public int getCurrentVectorSize()
Description copied from interface:VectorSizeInspectorReturns the current vector size for this cursor. Will never be larger than the max size returned byVectorSizeInspector.getMaxVectorSize().- Specified by:
getCurrentVectorSizein interfaceVectorSizeInspector
-
getMaxVectorSize
public int getMaxVectorSize()
Description copied from interface:VectorSizeInspectorReturns 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:
getMaxVectorSizein interfaceVectorSizeInspector
-
getLongVector
public long[] getLongVector()
Description copied from interface:VectorValueSelectorGet 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:
getLongVectorin interfaceVectorValueSelector
-
getFloatVector
public float[] getFloatVector()
Description copied from interface:VectorValueSelectorGet 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:
getFloatVectorin interfaceVectorValueSelector
-
-