Class ExpressionLambdaAggregatorInputBindings
java.lang.Object
org.apache.druid.query.aggregation.ExpressionLambdaAggregatorInputBindings
- All Implemented Interfaces:
Expr.InputBindingInspector,Expr.ObjectBinding
Special
Expr.ObjectBinding for use with ExpressionLambdaAggregatorFactory.
This value binding holds a value for a special 'accumulator' variable, in addition to the 'normal' bindings to the
underlying selector inputs for other identifiers, which allows for easy forward feeding of the results of an
expression evaluation to use in the bindings of the next evaluation.-
Constructor Summary
ConstructorsConstructorDescriptionExpressionLambdaAggregatorInputBindings(Expr.ObjectBinding inputBindings, String accumulatorIdentifier, ExprEval<?> initialValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(ExprEval<?> eval) Get value binding for string identifier ofIdentifierExprExprEval<?> Get theExpressionTypefrom the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)voidsetAccumulator(ExprEval<?> acc) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
Constructor Details
-
ExpressionLambdaAggregatorInputBindings
public ExpressionLambdaAggregatorInputBindings(Expr.ObjectBinding inputBindings, String accumulatorIdentifier, ExprEval<?> initialValue)
-
-
Method Details
-
get
Description copied from interface:Expr.ObjectBindingGet value binding for string identifier ofIdentifierExpr- Specified by:
getin interfaceExpr.ObjectBinding
-
getType
Description copied from interface:Expr.InputBindingInspectorGet theExpressionTypefrom the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)- Specified by:
getTypein interfaceExpr.InputBindingInspector
-
accumulate
-
getAccumulator
-
setAccumulator
-