public class JsonFunction extends Object
Description of schema elements| Modifier and Type | Field and Description |
|---|---|
String |
className
Name of the class that implements this function.
|
String |
methodName
Name of the method that implements this function.
|
String |
name
Name of this function.
|
List<String> |
path
Path for resolving this function.
|
| Constructor and Description |
|---|
JsonFunction() |
public String name
Required.
public String className
Required.
public String methodName
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.
public void accept(ModelHandler handler)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.