Package org.apache.druid.math.expr
Class ApplyFunction.FoldLambdaBinding
java.lang.Object
org.apache.druid.math.expr.ApplyFunction.FoldLambdaBinding
- All Implemented Interfaces:
ApplyFunction.IndexableFoldLambdaBinding,Expr.InputBindingInspector,Expr.ObjectBinding
- Enclosing interface:
ApplyFunction
public static class ApplyFunction.FoldLambdaBinding
extends Object
implements ApplyFunction.IndexableFoldLambdaBinding
ApplyFunction.IndexableFoldLambdaBinding for a ApplyFunction.FoldFunction. Like ApplyFunction.MapLambdaBinding
but with additional information to track and provide binding values for an accumulator.-
Method Summary
Modifier and TypeMethodDescriptionaccumulateWithIndex(int index, Object acc) Update the index and accumulator valueGet value binding for string identifier ofIdentifierExprintTotal number of bindings in this bindingGet theExpressionTypefrom the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)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
-
Method Details
-
get
Description copied from interface:Expr.ObjectBindingGet value binding for string identifier ofIdentifierExpr- Specified by:
getin interfaceExpr.ObjectBinding
-
getAccumulatorType
- Specified by:
getAccumulatorTypein interfaceApplyFunction.IndexableFoldLambdaBinding
-
getLength
public int getLength()Description copied from interface:ApplyFunction.IndexableFoldLambdaBindingTotal number of bindings in this binding- Specified by:
getLengthin interfaceApplyFunction.IndexableFoldLambdaBinding
-
accumulateWithIndex
Description copied from interface:ApplyFunction.IndexableFoldLambdaBindingUpdate the index and accumulator value- Specified by:
accumulateWithIndexin interfaceApplyFunction.IndexableFoldLambdaBinding
-
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
-