public abstract static class ApplyFunction.BaseFoldFunction extends Object implements ApplyFunction
ApplyFunction which aggregate a scalar or array value given one or more array
input Expr arguments and an array or scalar "accumulator" argument with an initial valueApplyFunction.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 |
|---|
BaseFoldFunction() |
| 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, waitapply, asVectorProcessor, canVectorize, getArrayInputs, validateArgumentsname, processingFailed, validationFailed, validationFailed, validationHelperCheckAnyOfArgumentCount, validationHelperCheckArgIsLiteral, validationHelperCheckArgumentCount, validationHelperCheckArgumentCount, validationHelperCheckArgumentRange, validationHelperCheckLambaArgumentCount, validationHelperCheckMinArgumentCount, validationHelperCheckMinArgumentCountpublic boolean hasArrayOutput(org.apache.druid.math.expr.LambdaExpr lambdaExpr)
ApplyFunctionApplyFunction 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)
ApplyFunctiongetOutputType in interface ApplyFunctionExpr.getOutputType(org.apache.druid.math.expr.Expr.InputBindingInspector)Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.