RewrittenAnalysis¶
RewrittenAnalysis
is an ImmutableAnalysis.
Creating Instance¶
RewrittenAnalysis
takes the following to be created:
- Original ImmutableAnalysis
- Rewriter Function
RewrittenAnalysis
is created when:
KsqlEngine
is requested to analyzeQueryWithNoOutputTopicLogicalPlanner
is created
Rewriter Function¶
BiFunction<Expression, Context<Void>, Optional<Expression>> rewriter
RewrittenAnalysis
is given a rewriter function when created.
The rewriter function is used in rewrite.
getSelectItems¶
List<SelectItem> getSelectItems()
getSelectItems
is part of the ImmutableAnalysis abstraction.
getSelectItems
...FIXME
getInto¶
Optional<Into> getInto()
getInto
is part of the ImmutableAnalysis abstraction.
getInto
requests the original ImmutableAnalysis for the getInto.
rewrite¶
ColumnName rewrite(
ColumnName name)
<T extends Expression> T rewrite(
T expression)
rewrite
...FIXME
rewrite
is used when:
RewrittenAnalysis
is requested to getSelectColumnNames, getSelectItems, getDefaultArgument, rewriteOptional, rewriteList