Package org.apache.druid.segment.vector
Interface VectorValueSelector
-
- All Superinterfaces:
VectorSizeInspector
- All Known Implementing Classes:
BaseDoubleVectorValueSelector
,BaseFloatVectorValueSelector
,BaseLongVectorValueSelector
,ExpressionVectorValueSelector
,NilVectorSelector
public interface VectorValueSelector extends VectorSizeInspector
Vectorized selector for primitive columns.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]
getDoubleVector()
Get the current vector, casting to doubles as necessary.float[]
getFloatVector()
Get the current vector, casting to floats as necessary.long[]
getLongVector()
Get the current vector, casting to longs as necessary.boolean[]
getNullVector()
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 Detail
-
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.
-
-