public class ScalarFunctionImpl extends UdfImplReflectiveFunctionBase implements org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.ScalarFunction, org.apache.beam.vendor.calcite.v1_20_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_20_0.org.apache.calcite.adapter.enumerable.CallImplementor implementor) |
Modifier and Type | Method and Description |
---|---|
static org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.Function |
create(java.lang.reflect.Method method)
Creates
Function from
given method. |
static org.apache.beam.vendor.calcite.v1_20_0.com.google.common.collect.ImmutableMultimap<java.lang.String,org.apache.beam.vendor.calcite.v1_20_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_20_0.org.apache.calcite.adapter.enumerable.CallImplementor |
createImplementor(java.lang.reflect.Method method) |
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.adapter.enumerable.CallImplementor |
getImplementor() |
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataType |
getReturnType(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataType |
getReturnType(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.beam.vendor.calcite.v1_20_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_20_0.org.apache.calcite.adapter.enumerable.CallImplementor implementor)
public static org.apache.beam.vendor.calcite.v1_20_0.com.google.common.collect.ImmutableMultimap<java.lang.String,org.apache.beam.vendor.calcite.v1_20_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_20_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 nullprotected static void validateMethod(java.lang.reflect.Method method)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataType getReturnType(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getReturnType
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.ScalarFunction
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.adapter.enumerable.CallImplementor getImplementor()
getImplementor
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.ImplementableFunction
protected static org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.adapter.enumerable.CallImplementor createImplementor(java.lang.reflect.Method method)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataType getReturnType(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeFactory typeFactory, org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.SqlOperatorBinding opBinding)