Interface ResolverRule.ResolutionContext
-
- Enclosing interface:
- ResolverRule
@Internal public static interface ResolverRule.ResolutionContext
Contextual information that can be used during application of the rule. E.g. one can access fields in inputs by name etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadableConfig
configuration()
Access to configuration.FunctionLookup
functionLookup()
Access to availableFunctionDefinition
s.Optional<LocalReferenceExpression>
getLocalReference(String alias)
Access to available local references.List<LocalReferenceExpression>
getLocalReferences()
Access to available local references.Optional<DataType>
getOutputDataType()
Access to the expected top-level output data type.Optional<LocalOverWindow>
getOverWindow(Expression alias)
Access to available local over windows.boolean
isGroupedAggregation()
Whether the expression is evaluated for a grouped aggregation.ExpressionResolver.PostResolverFactory
postResolutionFactory()
Enables the creation of resolved expressions for transformations after the actual resolution.FieldReferenceLookup
referenceLookup()
Access to availableFieldReferenceExpression
in inputs.SqlExpressionResolver
sqlExpressionResolver()
Translates a SQL expression toResolvedExpression
.TableReferenceLookup
tableLookup()
Access to availableTableReferenceExpression
.DataTypeFactory
typeFactory()
Access toDataTypeFactory
.ClassLoader
userClassLoader()
Access to user classloader.
-
-
-
Method Detail
-
configuration
ReadableConfig configuration()
Access to configuration.
-
userClassLoader
ClassLoader userClassLoader()
Access to user classloader.
-
referenceLookup
FieldReferenceLookup referenceLookup()
Access to availableFieldReferenceExpression
in inputs.
-
tableLookup
TableReferenceLookup tableLookup()
Access to availableTableReferenceExpression
.
-
functionLookup
FunctionLookup functionLookup()
Access to availableFunctionDefinition
s.
-
typeFactory
DataTypeFactory typeFactory()
Access toDataTypeFactory
.
-
sqlExpressionResolver
SqlExpressionResolver sqlExpressionResolver()
Translates a SQL expression toResolvedExpression
.
-
postResolutionFactory
ExpressionResolver.PostResolverFactory postResolutionFactory()
Enables the creation of resolved expressions for transformations after the actual resolution.
-
getLocalReference
Optional<LocalReferenceExpression> getLocalReference(String alias)
Access to available local references.
-
getLocalReferences
List<LocalReferenceExpression> getLocalReferences()
Access to available local references.
-
getOutputDataType
Optional<DataType> getOutputDataType()
Access to the expected top-level output data type.
-
getOverWindow
Optional<LocalOverWindow> getOverWindow(Expression alias)
Access to available local over windows.
-
isGroupedAggregation
boolean isGroupedAggregation()
Whether the expression is evaluated for a grouped aggregation.
-
-