Package org.apache.druid.math.expr
Class ApplyFunction.LambdaInputBindingInspector
- java.lang.Object
-
- org.apache.druid.math.expr.ApplyFunction.LambdaInputBindingInspector
-
- All Implemented Interfaces:
Expr.InputBindingInspector
- Enclosing interface:
- ApplyFunction
public static class ApplyFunction.LambdaInputBindingInspector extends Object implements Expr.InputBindingInspector
Helper that can wrap anotherExpr.InputBindingInspectorto use to supply the type information of aLambdaExprwhen evaluatingExpr.getOutputType(org.apache.druid.math.expr.Expr.InputBindingInspector). Lambda identifiers do not exist in the underlyingExpr.InputBindingInspector, but can be created by mapping the lambda identifiers to the arguments that will be applied to them, to map the type information.
-
-
Constructor Summary
Constructors Constructor Description LambdaInputBindingInspector(Expr.InputBindingInspector inspector, LambdaExpr expr, List<Expr> args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTypegetType(String name)Get 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, wait
-
Methods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
-
-
-
Constructor Detail
-
LambdaInputBindingInspector
public LambdaInputBindingInspector(Expr.InputBindingInspector inspector, LambdaExpr expr, List<Expr> args)
-
-
Method Detail
-
getType
@Nullable public ExpressionType getType(String name)
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
-
-