Modifier and Type | Class and Description |
---|---|
class |
AbstractSqlCallContext
A
CallContext backed by SqlOperatorBinding . |
class |
CallBindingCallContext
A
CallContext backed by SqlCallBinding . |
class |
OperatorBindingCallContext
A
CallContext backed by SqlOperatorBinding . |
Modifier and Type | Method and Description |
---|---|
static CallContext |
TypeInferenceUtil.adaptArguments(TypeInference typeInference,
CallContext callContext,
DataType outputType)
Adapts the call's argument if necessary.
|
Modifier and Type | Method and Description |
---|---|
static CallContext |
TypeInferenceUtil.adaptArguments(TypeInference typeInference,
CallContext callContext,
DataType outputType)
Adapts the call's argument if necessary.
|
static ValidationException |
TypeInferenceUtil.createInvalidCallException(CallContext callContext,
ValidationException cause)
Returns an exception for an invalid call to a function.
|
static ValidationException |
TypeInferenceUtil.createInvalidInputException(TypeInference typeInference,
CallContext callContext,
ValidationException cause)
Returns an exception for invalid input arguments.
|
static TableException |
TypeInferenceUtil.createUnexpectedException(CallContext callContext,
Throwable cause)
Returns an exception for an unexpected error during type inference.
|
Optional<DataType> |
ArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure)
Main logic for inferring and validating an argument.
|
Optional<List<DataType>> |
InputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure)
Main logic for inferring and validating the input arguments.
|
static DataType |
TypeInferenceUtil.inferOutputType(CallContext callContext,
TypeStrategy outputTypeStrategy)
Infers an output type using the given
TypeStrategy . |
Optional<DataType> |
TypeStrategy.inferType(CallContext callContext)
Infers a type from the given function call.
|
static TypeInferenceUtil.Result |
TypeInferenceUtil.runTypeInference(TypeInference typeInference,
CallContext callContext,
TypeInferenceUtil.SurroundingInfo surroundingInfo)
Runs the entire type inference process.
|
Modifier and Type | Method and Description |
---|---|
Optional<DataType> |
AnyArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
OrArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
OutputArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
ExplicitArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
FamilyArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
LiteralArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
RootArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<DataType> |
AndArgumentTypeStrategy.inferArgumentType(CallContext callContext,
int argumentPos,
boolean throwOnFailure) |
Optional<List<DataType>> |
VaryingSequenceInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
SequenceInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
OrInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
MapInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
ArrayInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<List<DataType>> |
WildcardInputTypeStrategy.inferInputTypes(CallContext callContext,
boolean throwOnFailure) |
Optional<DataType> |
UseArgumentTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
MappingTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
MissingTypeStrategy.inferType(CallContext callContext) |
Optional<DataType> |
ExplicitTypeStrategy.inferType(CallContext callContext) |
Modifier and Type | Class and Description |
---|---|
class |
AdaptedCallContext
Helper context that deals with adapted arguments.
|
class |
UnknownCallContext
A
CallContext with unknown data types. |
Constructor and Description |
---|
AdaptedCallContext(CallContext originalContext,
DataType outputDataType) |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.