Class ZetaSqlScalarFunctionImpl
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.UdfImplReflectiveFunctionBase
org.apache.beam.sdk.extensions.sql.impl.ScalarFunctionImpl
org.apache.beam.sdk.extensions.sql.zetasql.translation.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
ZetaSQL-specific extension to
ScalarFunctionImpl.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.beam.sdk.extensions.sql.impl.UdfImplReflectiveFunctionBase
UdfImplReflectiveFunctionBase.ParameterListBuilder -
Field Summary
FieldsFields inherited from class org.apache.beam.sdk.extensions.sql.impl.UdfImplReflectiveFunctionBase
method, parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.FunctionCreatesFunctionfrom given class.static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.FunctionCreatesFunctionfrom given method.Methods inherited from class org.apache.beam.sdk.extensions.sql.impl.ScalarFunctionImpl
create, create, createAll, createImplementor, getImplementor, getJarPath, getReturnType, getReturnType, validateMethodMethods inherited from class org.apache.beam.sdk.extensions.sql.impl.UdfImplReflectiveFunctionBase
builder, getParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function
getParameters
-
Field Details
-
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) CreatesFunctionfrom 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 functionmethodName- Method name (typically "eval")functionGroup- ZetaSQL function group identifier. Different function groups may have divergent translation paths.- Returns:
- created
ScalarFunctionor null
-
create
public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function create(Method method, String functionGroup, String jarPath) CreatesFunctionfrom given method. Whenevalmethod does not suit,nullis returned.- Parameters:
method- method that is used to implement the functionfunctionGroup- ZetaSQL function group identifier. Different function groups may have divergent translation paths.- Returns:
- created
Functionor null
-