public abstract static class ApplyFunction.BaseMapFunction extends Object implements ApplyFunction
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)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 and Description |
---|
BaseMapFunction() |
Modifier and Type | Method and Description |
---|---|
ExpressionType |
getOutputType(Expr.InputBindingInspector inspector,
org.apache.druid.math.expr.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.
|
boolean |
hasArrayOutput(org.apache.druid.math.expr.LambdaExpr lambdaExpr)
Returns true if apply function produces an array output.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, asVectorProcessor, canVectorize, getArrayInputs, validateArguments
name, processingFailed, validationFailed, validationFailed, validationHelperCheckAnyOfArgumentCount, validationHelperCheckArgIsLiteral, validationHelperCheckArgumentCount, validationHelperCheckArgumentCount, validationHelperCheckArgumentRange, validationHelperCheckLambaArgumentCount, validationHelperCheckMinArgumentCount, validationHelperCheckMinArgumentCount
public boolean hasArrayOutput(org.apache.druid.math.expr.LambdaExpr lambdaExpr)
ApplyFunction
ApplyFunction
implementations are expected to
exclusively produce either scalar or array values.hasArrayOutput
in interface ApplyFunction
@Nullable public ExpressionType getOutputType(Expr.InputBindingInspector inspector, org.apache.druid.math.expr.LambdaExpr expr, List<Expr> args)
ApplyFunction
getOutputType
in interface ApplyFunction
Expr.getOutputType(org.apache.druid.math.expr.Expr.InputBindingInspector)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.