@Internal public final class TypeInferenceExtractor extends Object
TypeInference
from a supported subclass of
UserDefinedFunction
.
The behavior of this utility can be influenced by DataTypeHint
s and FunctionHint
s 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.
Constructor and Description |
---|
TypeInferenceExtractor() |
Modifier and Type | Method and Description |
---|---|
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–2024 The Apache Software Foundation. All rights reserved.