use of com.qlangtech.tis.sql.parser.tuple.creator.impl.TabCriteriaEntityRecognizeVisitor in project tis by qlangtech.
the class TableReferenceVisitor method processTableReferenceRecoginize.
/**
* @param joinOn
* @param jointype
* @param table
* @param tupleCreator
* @param tabRefName 表引用名称
*/
private void processTableReferenceRecoginize(Optional<JoinOn> joinOn, Type jointype, Table table, IDataTupleCreator tupleCreator, final String tabRefName) {
String tabName = String.valueOf((table).getName());
//
TabCriteriaEntityRecognizeVisitor tabCriteriaEntityRecognizeVisitor = new //
TabCriteriaEntityRecognizeVisitor(new TabCriteria(tabName, joinOn == null ? null : joinOn.get(), joinOn == null, jointype), this.dumpNodsContext);
tupleCreator.accept(tabCriteriaEntityRecognizeVisitor);
this.setFuncGroupByTuple(tupleCreator, tabRefName);
}
use of com.qlangtech.tis.sql.parser.tuple.creator.impl.TabCriteriaEntityRecognizeVisitor in project tis by qlangtech.
the class TableReferenceVisitor method processSubQuery.
private void processSubQuery(Optional<JoinOn> joinOn, Type jointype, Identifier a, IDataTupleCreator tupleCreator, String tabRefName, TableSubquery subQuery) {
final String tabName = "innertab_" + a.getValue();
//
TabCriteriaEntityRecognizeVisitor tabCriteriaEntityRecognizeVisitor = new TabCriteriaEntityRecognizeVisitor(new TabCriteria(tabName, joinOn == null ? null : joinOn.get(), joinOn == null, jointype), this.dumpNodsContext);
tabCriteriaEntityRecognizeVisitor.setSubQuery(subQuery);
tupleCreator.accept(tabCriteriaEntityRecognizeVisitor);
this.setFuncGroupByTuple(tupleCreator, tabRefName);
}
Aggregations