Package org.apache.druid.math.expr
Interface Expr.VectorInputBinding
-
- All Superinterfaces:
Expr.InputBindingInspector
,Expr.VectorInputBindingInspector
- All Known Implementing Classes:
ExpressionVectorInputBinding
- Enclosing interface:
- Expr
public static interface Expr.VectorInputBinding extends Expr.VectorInputBindingInspector
Mechanism to supply batches of input values to aExprVectorProcessor
for optimized processing. Mirrors the vectorized column selector interfaces, and includesExpressionType
information about all input bindings which exist
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCurrentVectorId()
Returns an integer that uniquely identifies the current position of the underlying vector offset, if this binding is backed by a segment.int
getCurrentVectorSize()
double[]
getDoubleVector(String name)
long[]
getLongVector(String name)
boolean[]
getNullVector(String name)
<T> T[]
getObjectVector(String name)
-
Methods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize, getType
-
Methods inherited from interface org.apache.druid.math.expr.Expr.VectorInputBindingInspector
getMaxVectorSize
-
-
-
-
Method Detail
-
getObjectVector
<T> T[] getObjectVector(String name)
-
getLongVector
long[] getLongVector(String name)
-
getDoubleVector
double[] getDoubleVector(String name)
-
getCurrentVectorSize
int getCurrentVectorSize()
-
getCurrentVectorId
int getCurrentVectorId()
Returns an integer that uniquely identifies the current position of the underlying vector offset, if this binding is backed by a segment. This is useful for caching: it is safe to assume nothing has changed in the offset so long as the id remains the same. See also: ReadableVectorOffset (in druid-processing)
-
-