@Internal public class UserDefinedFunctionHelper extends Object
FunctionCatalog.| Modifier and Type | Method and Description |
|---|---|
static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<ACC> |
getAccumulatorTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction)
Tries to infer the TypeInformation of an AggregateFunction's accumulator type.
|
static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<ACC> |
getAccumulatorTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> scalaType)
Tries to infer the TypeInformation of an AggregateFunction's accumulator type.
|
static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction)
Tries to infer the TypeInformation of an AggregateFunction's accumulator type.
|
static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<T> scalaType)
Tries to infer the TypeInformation of an AggregateFunction's accumulator type.
|
static <T> org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnTypeOfTableFunction(org.apache.flink.table.functions.TableFunction<T> tableFunction)
Tries to infer the TypeInformation of an AggregateFunction's accumulator type.
|
static <T> org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnTypeOfTableFunction(org.apache.flink.table.functions.TableFunction<T> tableFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<T> scalaType)
Tries to infer the TypeInformation of an AggregateFunction's accumulator type.
|
static void |
prepareFunction(TableConfig config,
org.apache.flink.table.functions.UserDefinedFunction function)
Prepares a
UserDefinedFunction for usage in the API. |
public static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction)
aggregateFunction - The AggregateFunction for which the accumulator type is inferred.public static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<T> scalaType)
aggregateFunction - The AggregateFunction for which the accumulator type is inferred.scalaType - The implicitly inferred type of the accumulator type.public static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<ACC> getAccumulatorTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction)
aggregateFunction - The AggregateFunction for which the accumulator type is inferred.public static <T,ACC> org.apache.flink.api.common.typeinfo.TypeInformation<ACC> getAccumulatorTypeOfAggregateFunction(org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> aggregateFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> scalaType)
aggregateFunction - The AggregateFunction for which the accumulator type is inferred.scalaType - The implicitly inferred type of the accumulator type.public static <T> org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnTypeOfTableFunction(org.apache.flink.table.functions.TableFunction<T> tableFunction)
tableFunction - The TableFunction for which the accumulator type is inferred.public static <T> org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnTypeOfTableFunction(org.apache.flink.table.functions.TableFunction<T> tableFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<T> scalaType)
tableFunction - The TableFunction for which the accumulator type is inferred.scalaType - The implicitly inferred type of the accumulator type.public static void prepareFunction(TableConfig config, org.apache.flink.table.functions.UserDefinedFunction function)
UserDefinedFunction for usage in the API.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.