Package org.apache.druid.math.expr
Class ApplyFunction.BaseMapFunction
java.lang.Object
org.apache.druid.math.expr.ApplyFunction.BaseMapFunction
- All Implemented Interfaces:
ApplyFunction,NamedFunction
- Direct Known Subclasses:
ApplyFunction.CartesianMapFunction,ApplyFunction.MapFunction
- Enclosing interface:
ApplyFunction
Base class for "map" functions, which are a class of
ApplyFunction which take a lambda function that is
mapped to the values of an ApplyFunction.IndexableMapLambdaObjectBinding which is created from the outer
Expr.ObjectBinding and the values of the array Expr argument(s)-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.math.expr.ApplyFunction
ApplyFunction.AllMatchFunction, ApplyFunction.AnyMatchFunction, ApplyFunction.BaseFoldFunction, ApplyFunction.BaseMapFunction, ApplyFunction.CartesianFoldFunction, ApplyFunction.CartesianFoldLambdaBinding, ApplyFunction.CartesianMapFunction, ApplyFunction.CartesianMapLambdaBinding, ApplyFunction.FilterFunction, ApplyFunction.FoldFunction, ApplyFunction.FoldLambdaBinding, ApplyFunction.IndexableFoldLambdaBinding, ApplyFunction.IndexableMapLambdaObjectBinding, ApplyFunction.LambdaInputBindingInspector, ApplyFunction.MapFunction, ApplyFunction.MapLambdaBinding, ApplyFunction.MatchFunction, ApplyFunction.SettableLambdaBinding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOutputType(Expr.InputBindingInspector inspector, LambdaExpr expr, List<Expr> args) Compute the output type of this function for a given lambda and the argument expressions which will be applied as its inputs.booleanhasArrayOutput(LambdaExpr lambdaExpr) Returns true if apply function produces an array output.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.ApplyFunction
apply, asVectorProcessor, canVectorize, getArrayInputs, validateArgumentsMethods inherited from interface org.apache.druid.math.expr.NamedFunction
name, processingFailed, processingFailed, validationFailed, validationFailed, validationHelperCheckAnyOfArgumentCount, validationHelperCheckArgIsLiteral, validationHelperCheckArgumentCount, validationHelperCheckArgumentCount, validationHelperCheckArgumentRange, validationHelperCheckLambaArgumentCount, validationHelperCheckMinArgumentCount, validationHelperCheckMinArgumentCount
-
Constructor Details
-
BaseMapFunction
public BaseMapFunction()
-
-
Method Details
-
hasArrayOutput
Description copied from interface:ApplyFunctionReturns true if apply function produces an array output. AllApplyFunctionimplementations are expected to exclusively produce either scalar or array values.- Specified by:
hasArrayOutputin interfaceApplyFunction
-
getOutputType
@Nullable public ExpressionType getOutputType(Expr.InputBindingInspector inspector, LambdaExpr expr, List<Expr> args) Description copied from interface:ApplyFunctionCompute the output type of this function for a given lambda and the argument expressions which will be applied as its inputs.- Specified by:
getOutputTypein interfaceApplyFunction- See Also:
-