Class JsonFunction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String className
      Name of the class that implements this function.
      java.lang.String methodName
      Name of the method that implements this function.
      java.lang.String name
      Name of this function.
      java.util.List<java.lang.String> path
      Path for resolving this function.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonFunction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(ModelHandler handler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public java.lang.String name
        Name of this function.

        Required.

      • className

        public java.lang.String className
        Name of the class that implements this function.

        Required.

      • methodName

        public java.lang.String methodName
        Name of the method that implements this function.

        Optional.

        If specified, the method must exist (case-sensitive) and Calcite will create a scalar function. The method may be static or non-static, but if non-static, the class must have a public constructor with no parameters.

        If "*", Calcite creates a function for every method in this class.

        If not specified, Calcite looks for a method called "eval", and if found, creates a a table macro or scalar function. It also looks for methods "init", "add", "merge", "result", and if found, creates an aggregate function.

      • path

        public java.util.List<java.lang.String> path
        Path for resolving this function.

        Optional.

    • Constructor Detail

      • JsonFunction

        public JsonFunction()