Class Function.NvlFunc

java.lang.Object
org.apache.druid.math.expr.Function.CoalesceFunc
org.apache.druid.math.expr.Function.NvlFunc
All Implemented Interfaces:
Function, NamedFunction
Enclosing interface:
Function

public static class Function.NvlFunc extends Function.CoalesceFunc
nvl is like coalesce, but accepts exactly two arguments.
  • Constructor Details

    • NvlFunc

      public NvlFunc()
  • Method Details

    • name

      public String name()
      Description copied from interface: NamedFunction
      Name of the function
      Specified by:
      name in interface NamedFunction
      Overrides:
      name in class Function.CoalesceFunc
    • 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
      Overrides:
      validateArguments in class Function.CoalesceFunc