@Internal public final class TypeInferenceExtractor extends Object
TypeInference from a supported subclass of
UserDefinedFunction.
The behavior of this utility can be influenced by DataTypeHints and FunctionHints which have higher precedence than the reflective information.
Note: This utility assumes that functions have been validated before regarding accessibility of class/methods and serializability.
| 构造器和说明 |
|---|
TypeInferenceExtractor() |
| 限定符和类型 | 方法和说明 |
|---|---|
static TypeInference |
forAggregateFunction(DataTypeFactory typeFactory,
Class<? extends AggregateFunction<?,?>> function)
Extracts a type inference from a
AggregateFunction. |
static TypeInference |
forAsyncTableFunction(DataTypeFactory typeFactory,
Class<? extends AsyncTableFunction<?>> function)
Extracts a type inference from a
AsyncTableFunction. |
static TypeInference |
forScalarFunction(DataTypeFactory typeFactory,
Class<? extends ScalarFunction> function)
Extracts a type inference from a
ScalarFunction. |
static TypeInference |
forTableAggregateFunction(DataTypeFactory typeFactory,
Class<? extends TableAggregateFunction<?,?>> function)
Extracts a type inference from a
TableAggregateFunction. |
static TypeInference |
forTableFunction(DataTypeFactory typeFactory,
Class<? extends TableFunction<?>> function)
Extracts a type inference from a
TableFunction. |
public static TypeInference forScalarFunction(DataTypeFactory typeFactory, Class<? extends ScalarFunction> function)
ScalarFunction.public static TypeInference forAggregateFunction(DataTypeFactory typeFactory, Class<? extends AggregateFunction<?,?>> function)
AggregateFunction.public static TypeInference forTableFunction(DataTypeFactory typeFactory, Class<? extends TableFunction<?>> function)
TableFunction.public static TypeInference forTableAggregateFunction(DataTypeFactory typeFactory, Class<? extends TableAggregateFunction<?,?>> function)
TableAggregateFunction.public static TypeInference forAsyncTableFunction(DataTypeFactory typeFactory, Class<? extends AsyncTableFunction<?>> function)
AsyncTableFunction.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.