use of org.wso2.ballerinalang.compiler.tree.clauses.BLangJoinStreamingInput in project ballerina by ballerina-lang.
the class TypeChecker method visit.
@Override
public void visit(BLangTableQuery tableQuery) {
BLangStreamingInput streamingInput = (BLangStreamingInput) tableQuery.getStreamingInput();
streamingInput.accept(this);
BLangJoinStreamingInput joinStreamingInput = (BLangJoinStreamingInput) tableQuery.getJoinStreamingInput();
if (joinStreamingInput != null) {
joinStreamingInput.accept(this);
}
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangJoinStreamingInput in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangStreamingQueryStatement streamingQueryStatement) {
StreamingInput streamingInput = streamingQueryStatement.getStreamingInput();
if (streamingInput != null) {
((BLangStreamingInput) streamingInput).accept(this);
JoinStreamingInput joinStreamingInput = streamingQueryStatement.getJoiningInput();
if (joinStreamingInput != null) {
((BLangJoinStreamingInput) joinStreamingInput).accept(this);
}
}
SelectClauseNode selectClauseNode = streamingQueryStatement.getSelectClause();
if (selectClauseNode != null) {
((BLangSelectClause) selectClauseNode).accept(this);
}
OrderByNode orderByNode = streamingQueryStatement.getOrderbyClause();
if (orderByNode != null) {
((BLangOrderBy) orderByNode).accept(this);
}
StreamActionNode streamActionNode = streamingQueryStatement.getStreamingAction();
if (streamActionNode != null) {
((BLangStreamAction) streamActionNode).accept(this);
}
BLangPatternClause patternClause = (BLangPatternClause) streamingQueryStatement.getPatternClause();
if (patternClause != null) {
patternClause.accept(this);
}
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangJoinStreamingInput in project ballerina by ballerina-lang.
the class BLangPackageBuilder method endJoinStreamingInputNode.
public void endJoinStreamingInputNode(DiagnosticPos pos, Set<Whitespace> ws, boolean isUnidirectionalBeforeJoin, boolean isUnidirectionalAfterJoin, String joinType) {
JoinStreamingInput joinStreamingInput = this.joinStreamingInputsStack.peek();
((BLangJoinStreamingInput) joinStreamingInput).pos = pos;
joinStreamingInput.addWS(ws);
joinStreamingInput.setStreamingInput(this.streamingInputStack.pop());
joinStreamingInput.setOnExpression(this.exprNodeStack.pop());
joinStreamingInput.setUnidirectionalBeforeJoin(isUnidirectionalBeforeJoin);
joinStreamingInput.setUnidirectionalAfterJoin(isUnidirectionalAfterJoin);
joinStreamingInput.setJoinType(joinType);
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangJoinStreamingInput in project ballerina by ballerina-lang.
the class BLangPackageBuilder method startJoinStreamingInputNode.
public void startJoinStreamingInputNode(DiagnosticPos pos, Set<Whitespace> ws) {
JoinStreamingInput joinStreamingInput = TreeBuilder.createJoinStreamingInputNode();
((BLangJoinStreamingInput) joinStreamingInput).pos = pos;
joinStreamingInput.addWS(ws);
this.joinStreamingInputsStack.push(joinStreamingInput);
}
use of org.wso2.ballerinalang.compiler.tree.clauses.BLangJoinStreamingInput in project ballerina by ballerina-lang.
the class SqlQueryBuilder method visit.
@Override
public void visit(BLangJoinStreamingInput joinStreamingInput) {
BLangBinaryExpr expr = (BLangBinaryExpr) joinStreamingInput.getOnExpression();
BLangStreamingInput streamingInput = (BLangStreamingInput) joinStreamingInput.getStreamingInput();
joinStreamingInputClause = new StringBuilder();
streamingInput.accept(this);
joinStreamingInputClause.append("join ").append(streamingInputClause).append(" on ");
addParametrizedSQL(expr, joinStreamingInputClause, joinOnExprParams);
}
Aggregations