public class ScalarFunctionImpl extends UdfImplReflectiveFunctionBase implements org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.ScalarFunction, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.ImplementableFunction
ScalarFunctionImpl
, to
address BEAM-5921.UdfImplReflectiveFunctionBase.ParameterListBuilder
method, parameters
Modifier | Constructor and Description |
---|---|
protected |
ScalarFunctionImpl(java.lang.reflect.Method method,
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor implementor) |
protected |
ScalarFunctionImpl(java.lang.reflect.Method method,
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor implementor,
java.lang.String jarPath) |
Modifier and Type | Method and Description |
---|---|
static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function |
create(java.lang.reflect.Method method)
Creates
Function from
given method. |
static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function |
create(java.lang.reflect.Method method,
java.lang.String jarPath)
Creates
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.Function from
given method. |
static org.apache.beam.vendor.calcite.v1_28_0.com.google.common.collect.ImmutableMultimap<java.lang.String,org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function> |
createAll(java.lang.Class<?> clazz)
Creates
Function for
each method in a given class. |
protected static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor |
createImplementor(java.lang.reflect.Method method) |
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor |
getImplementor() |
java.lang.String |
getJarPath()
Optional Beam filesystem path to the jar containing the bytecode for this function.
|
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType |
getReturnType(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType |
getReturnType(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperatorBinding opBinding) |
protected static void |
validateMethod(java.lang.reflect.Method method) |
builder, getParameters
protected ScalarFunctionImpl(java.lang.reflect.Method method, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor implementor, java.lang.String jarPath)
protected ScalarFunctionImpl(java.lang.reflect.Method method, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor implementor)
public java.lang.String getJarPath()
public static org.apache.beam.vendor.calcite.v1_28_0.com.google.common.collect.ImmutableMultimap<java.lang.String,org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function> createAll(java.lang.Class<?> clazz)
Function
for
each method in a given class.public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function create(java.lang.reflect.Method method)
Function
from
given method. When eval
method does not suit, null
is returned.method
- method that is used to implement the functionFunction
or nullpublic static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function create(java.lang.reflect.Method method, java.lang.String jarPath)
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.Function
from
given method. When eval
method does not suit, null
is returned.method
- method that is used to implement the functionjarPath
- Path to jar that contains the method.Function
or nullprotected static void validateMethod(java.lang.reflect.Method method)
public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType getReturnType(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getReturnType
in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.ScalarFunction
public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor getImplementor()
getImplementor
in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.ImplementableFunction
protected static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.adapter.enumerable.CallImplementor createImplementor(java.lang.reflect.Method method)
public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType getReturnType(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperatorBinding opBinding)