Class Function.BivariateFunction

java.lang.Object
org.apache.druid.math.expr.Function.BivariateFunction
All Implemented Interfaces:
Function, NamedFunction
Direct Known Subclasses:
Function.BivariateBitwiseMathFunction, Function.BivariateMathFunction, Function.CastFunc, Function.Scalb, Function.StringLongFunction
Enclosing interface:
Function

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

    • BivariateFunction

      public BivariateFunction()
  • 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 x, ExprEval y)