Analyzer.Visitor¶
Analyzer.Visitor
is a DefaultTraversalVisitor to produce an AstNode
for Analyzer (to analyze a KSQL query statement).
Analyzer.Visitor
is a private final class
of Analyzer.
Creating Instance¶
Analyzer.Visitor
takes the following to be created:
- Query
- persistent flag
Analyzer.Visitor
is created when:
Analyzer
is requested to analyze
Analysis¶
Analyzer.Visitor
creates an Analysis when created.
The Analysis
instance is mutated (changed) while visiting AST nodes (for Analyzer to analyze a KSQL query statement).
persistent Flag¶
Analyzer.Visitor
is given persistent
flag when created.
persistent
flag indicates whether the Query has got a Sink or not.
In other words, a query is persistent when has got Sink defined.
analyzeNonStdOutSink¶
void analyzeNonStdOutSink(
Sink sink)
analyzeNonStdOutSink
...FIXME
analyzeNonStdOutSink
is used when:
Analyzer
is requested to analyze a Query statement (with a Sink)
visitAliasedRelation¶
AstNode visitAliasedRelation(
AliasedRelation node,
Void context)
visitAliasedRelation
is part of the AstVisitor abstraction.
visitAliasedRelation
makes sure that the Table
relation is registered in the MetaStore and requests the Analysis to register the alias with the DataSource.
visitSelect¶
AstNode visitSelect(
Select node,
Void context)
visitSelect
is part of the AstVisitor abstraction.
visitSelect
...FIXME
visitTableFunctions¶
void visitTableFunctions(
Expression expression)
visitTableFunctions
creates a TableFunctionVisitor
to process
the given Expression.