| 程序包 | 说明 |
|---|---|
| org.apache.flink.table.functions | |
| org.apache.flink.table.types.inference | |
| org.apache.flink.table.types.inference.strategies |
| 限定符和类型 | 方法和说明 |
|---|---|
BuiltInFunctionDefinition.Builder |
BuiltInFunctionDefinition.Builder.accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy) |
BuiltInFunctionDefinition.Builder |
BuiltInFunctionDefinition.Builder.outputTypeStrategy(TypeStrategy outputTypeStrategy) |
| 限定符和类型 | 字段和说明 |
|---|---|
static TypeStrategy |
TypeStrategies.ARRAY
Type strategy that returns a
DataTypes.ARRAY(DataType) with element type equal to the
type of the first argument. |
static TypeStrategy |
TypeStrategies.COMMON |
static TypeStrategy |
TypeStrategies.DECIMAL_DIVIDE
Type strategy that returns the quotient of an exact numeric division that includes at least
one decimal.
|
static TypeStrategy |
TypeStrategies.DECIMAL_MOD
Type strategy that returns the modulo of an exact numeric division that includes at least one
decimal.
|
static TypeStrategy |
TypeStrategies.DECIMAL_PLUS
<<<<<<< HEAD Type strategy that returns the sum of an exact numeric addition that includes at
least one decimal.
|
static TypeStrategy |
TypeStrategies.DECIMAL_SCALE0
Strategy that returns a decimal type but with a scale of 0.
|
static TypeStrategy |
TypeStrategies.DECIMAL_TIMES
Type strategy that returns the product of an exact numeric multiplication that includes at
least one decimal.
|
static TypeStrategy |
TypeStrategies.GET
Type strategy that returns a type of a field nested inside a composite type that is described
by the second argument.
|
static TypeStrategy |
TypeStrategies.MAP
Type strategy that returns a
DataTypes.MAP(DataType, DataType) with a key type equal
to type of the first argument and a value type equal to the type of second argument. |
static TypeStrategy |
TypeStrategies.MISSING
Placeholder for a missing type strategy.
|
static TypeStrategy |
TypeStrategies.ROUND
Type strategy that returns the result of a rounding operation.
|
static TypeStrategy |
TypeStrategies.ROW
Type strategy that returns a
DataTypes.ROW() with fields types equal to input types. |
static TypeStrategy |
TypeStrategies.STRING_CONCAT
Type strategy that returns the type of a string concatenation.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static TypeStrategy |
TypeStrategies.argument(int pos)
Type strategy that returns the n-th input argument.
|
static TypeStrategy |
TypeStrategies.explicit(DataType dataType)
Type strategy that returns a fixed
DataType. |
static TypeStrategy |
TypeStrategies.first(TypeStrategy... strategies)
Type strategy that returns the first type that could be inferred.
|
TypeStrategy |
TypeInference.getOutputTypeStrategy() |
static TypeStrategy |
TypeStrategies.mapping(Map<InputTypeStrategy,TypeStrategy> mappings)
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers identical types. |
static TypeStrategy |
TypeStrategies.matchFamily(int argumentPos,
LogicalTypeFamily family)
Type strategy that returns the given argument if it is of the same logical type family.
|
static TypeStrategy |
TypeStrategies.nullable(ConstantArgumentCount includedArgs,
TypeStrategy initialStrategy)
A type strategy that can be used to make a result type nullable if any of the selected input
arguments is nullable.
|
static TypeStrategy |
TypeStrategies.nullable(TypeStrategy initialStrategy)
A type strategy that can be used to make a result type nullable if any of the input arguments
is nullable.
|
static TypeStrategy |
TypeStrategies.varyingString(TypeStrategy initialStrategy)
A type strategy that ensures that the result type is either
LogicalTypeRoot.VARCHAR
or LogicalTypeRoot.VARBINARY from their corresponding non-varying roots. |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<TypeStrategy> |
TypeInference.getAccumulatorTypeStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
TypeInference.Builder |
TypeInference.Builder.accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy)
Sets the strategy for inferring the intermediate accumulator data type of a function
call.
|
static TypeStrategy |
TypeStrategies.first(TypeStrategy... strategies)
Type strategy that returns the first type that could be inferred.
|
static DataType |
TypeInferenceUtil.inferOutputType(CallContext callContext,
TypeStrategy outputTypeStrategy)
Infers an output type using the given
TypeStrategy. |
static TypeStrategy |
TypeStrategies.nullable(ConstantArgumentCount includedArgs,
TypeStrategy initialStrategy)
A type strategy that can be used to make a result type nullable if any of the selected input
arguments is nullable.
|
static TypeStrategy |
TypeStrategies.nullable(TypeStrategy initialStrategy)
A type strategy that can be used to make a result type nullable if any of the input arguments
is nullable.
|
TypeInference.Builder |
TypeInference.Builder.outputTypeStrategy(TypeStrategy outputTypeStrategy)
Sets the strategy for inferring the final output data type of a function call.
|
static TypeStrategy |
TypeStrategies.varyingString(TypeStrategy initialStrategy)
A type strategy that ensures that the result type is either
LogicalTypeRoot.VARCHAR
or LogicalTypeRoot.VARBINARY from their corresponding non-varying roots. |
| 限定符和类型 | 方法和说明 |
|---|---|
static TypeStrategy |
TypeStrategies.mapping(Map<InputTypeStrategy,TypeStrategy> mappings)
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers identical types. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonTypeStrategy
Type strategy that returns a common, least restrictive type of all arguments.
|
class |
ExplicitTypeStrategy
Type strategy that returns a fixed
DataType. |
class |
FirstTypeStrategy
Type strategy that returns the first type that could be inferred.
|
class |
MappingTypeStrategy
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers compatible types. |
class |
MatchFamilyTypeStrategy
Type strategy that returns the given argument if it is of the same logical type family.
|
class |
MissingTypeStrategy
Placeholder for a missing type strategy.
|
class |
NullableTypeStrategy
A type strategy that can be used to make a result type nullable if any of the selected input
arguments is nullable.
|
class |
UseArgumentTypeStrategy
Type strategy that returns the n-th input argument.
|
class |
VaryingStringTypeStrategy
A type strategy that ensures that the result type is either
LogicalTypeRoot.VARCHAR or
LogicalTypeRoot.VARBINARY from their corresponding non-varying roots. |
| 构造器和说明 |
|---|
NullableTypeStrategy(ConstantArgumentCount includedArguments,
TypeStrategy initialStrategy) |
VaryingStringTypeStrategy(TypeStrategy initialStrategy) |
| 构造器和说明 |
|---|
FirstTypeStrategy(List<? extends TypeStrategy> typeStrategies) |
MappingTypeStrategy(Map<InputTypeStrategy,TypeStrategy> mappings) |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.