public static class TypeInference.Builder extends Object
TypeInference
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TypeInference.Builder |
accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy)
Sets the strategy for inferring the intermediate accumulator data type of a function call.
|
TypeInference |
build() |
TypeInference.Builder |
inputTypeValidator(InputTypeValidator inputTypeValidator)
Sets the validator for checking the input data types of a function call.
|
TypeInference.Builder |
namedArguments(List<String> argumentNames)
Sets the list of argument names for specifying static input explicitly.
|
TypeInference.Builder |
outputTypeStrategy(TypeStrategy outputTypeStrategy)
Sets the strategy for inferring the final output data type of a function call.
|
TypeInference.Builder |
typedArguments(List<DataType> argumentTypes)
Sets the list of argument types for specifying static input explicitly.
|
public TypeInference.Builder inputTypeValidator(InputTypeValidator inputTypeValidator)
A always passing function is assumed by default (see InputTypeValidators.PASSING
).
public TypeInference.Builder accumulatorTypeStrategy(TypeStrategy accumulatorTypeStrategy)
public TypeInference.Builder outputTypeStrategy(TypeStrategy outputTypeStrategy)
Required.
public TypeInference.Builder namedArguments(List<String> argumentNames)
This information is useful for SQL's concept of named arguments using the assignment
operator (e.g. FUNC(max => 42)
).
public TypeInference.Builder typedArguments(List<DataType> argumentTypes)
This information is useful for implicit and safe casting.
public TypeInference build()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.