Class ZetaSqlScalarFunctionImpl

All Implemented Interfaces:
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.ImplementableFunction, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.ScalarFunction

public class ZetaSqlScalarFunctionImpl extends ScalarFunctionImpl
ZetaSQL-specific extension to ScalarFunctionImpl.
  • Field Details

    • functionGroup

      public final String functionGroup
      ZetaSQL function group identifier. Different function groups may have divergent translation paths.
  • Method Details

    • create

      public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function create(Class<?> clazz, String methodName, String functionGroup, String jarPath)
      Creates Function from given class.

      If a method of the given name is not found or it does not suit, returns null.

      Parameters:
      clazz - class that is used to implement the function
      methodName - Method name (typically "eval")
      functionGroup - ZetaSQL function group identifier. Different function groups may have divergent translation paths.
      Returns:
      created ScalarFunction or null
    • create

      public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function create(Method method, String functionGroup, String jarPath)
      Creates Function from given method. When eval method does not suit, null is returned.
      Parameters:
      method - method that is used to implement the function
      functionGroup - ZetaSQL function group identifier. Different function groups may have divergent translation paths.
      Returns:
      created Function or null