Class Function.UnivariateFunction

java.lang.Object
org.apache.druid.math.expr.Function.UnivariateFunction
All Implemented Interfaces:
Function, NamedFunction
Direct Known Subclasses:
Function.ReverseFunc, Function.UnivariateMathFunction
Enclosing interface:
Function

public abstract static class Function.UnivariateFunction extends Object implements Function
Base class for a single variable input Function implementation
  • Constructor Details

    • UnivariateFunction

      public UnivariateFunction()
  • Method Details

    • validateArguments

      public void validateArguments(List<Expr> args)
      Description copied from interface: Function
      Validate function arguments. This method is called whenever a FunctionExpr is created, and should validate everything that is feasible up front. Note that input type information is typically unavailable at the time Expr are parsed, and so this method is incapable of performing complete validation.
      Specified by:
      validateArguments in interface Function
    • apply

      public ExprEval apply(List<Expr> args, Expr.ObjectBinding bindings)
      Description copied from interface: Function
      Evaluate the function, given a list of arguments and a set of bindings to provide values for IdentifierExpr.
      Specified by:
      apply in interface Function
    • eval

      protected abstract ExprEval eval(ExprEval param)