Package org.apache.druid.math.expr
Interface ApplyFunction.IndexableFoldLambdaBinding
- All Superinterfaces:
Expr.InputBindingInspector,Expr.ObjectBinding
- All Known Implementing Classes:
ApplyFunction.CartesianFoldLambdaBinding,ApplyFunction.FoldLambdaBinding
- Enclosing interface:
- ApplyFunction
Expr.ObjectBinding which can be iterated by an integer index position for ApplyFunction.BaseFoldFunction.
Evaluating an IdentifierExpr against these bindings will return the value(s) of the array at the current
index for any lambda array identifiers, the value of the 'accumulator' for the lambda accumulator identifier,
and fall through to the base Expr.ObjectBinding for all bindings provided by an outer scope.-
Method Summary
Modifier and TypeMethodDescriptionaccumulateWithIndex(int index, Object accumulator) Update the index and accumulator valueintTotal number of bindings in this bindingMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize, getTypeMethods inherited from interface org.apache.druid.math.expr.Expr.ObjectBinding
get
-
Method Details
-
getAccumulatorType
ExpressionType getAccumulatorType() -
getLength
int getLength()Total number of bindings in this binding -
accumulateWithIndex
Update the index and accumulator value
-