public class ScalarFunctionImpl extends ReflectiveFunctionBase implements ScalarFunction, ImplementableFunction
ScalarFunction.method, parameters| Modifier and Type | Method and Description |
|---|---|
static ScalarFunction |
create(Class<?> clazz,
String methodName)
Creates
ScalarFunction from given class. |
static ScalarFunction |
create(Method method)
Creates
ScalarFunction from given method. |
static com.google.common.collect.ImmutableMultimap<String,ScalarFunction> |
createAll(Class<?> clazz)
Creates
ScalarFunction for each method in
a given class. |
CallImplementor |
getImplementor()
Returns implementor that translates the function to linq4j expression.
|
RelDataType |
getReturnType(RelDataTypeFactory typeFactory)
Returns the return type of this function, constructed using the given
type factory.
|
getParameters, toFunctionParameters, toFunctionParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterspublic static com.google.common.collect.ImmutableMultimap<String,ScalarFunction> createAll(Class<?> clazz)
ScalarFunction for each method in
a given class.public static ScalarFunction create(Class<?> clazz, String methodName)
ScalarFunction from given class.
If a method of the given name is not found or it does not suit,
returns null.
clazz - class that is used to implement the functionmethodName - Method name (typically "eval")ScalarFunction or nullpublic static ScalarFunction create(Method method)
method - method that is used to implement the functionScalarFunction or nullpublic RelDataType getReturnType(RelDataTypeFactory typeFactory)
ScalarFunctiongetReturnType in interface ScalarFunctiontypeFactory - Type factorypublic CallImplementor getImplementor()
ImplementableFunctiongetImplementor in interface ImplementableFunctionCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.