本文整理汇总了Java中com.taobao.tddl.optimizer.utils.PermutationGenerator类的典型用法代码示例。如果您正苦于以下问题:Java PermutationGenerator类的具体用法?Java PermutationGenerator怎么用?Java PermutationGenerator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PermutationGenerator类属于com.taobao.tddl.optimizer.utils包,在下文中一共展示了PermutationGenerator类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testNext
import com.taobao.tddl.optimizer.utils.PermutationGenerator; //导入依赖的package包/类
@Test
public void testNext() {
List<Integer> elements = new ArrayList<Integer>();
elements.add(1);
elements.add(2);
elements.add(3);
PermutationGenerator instance = new PermutationGenerator(elements);
while (instance.hasNext()) {
List result = instance.next();
System.out.println(result);
}
}
示例2: JoinPermutationGenerator
import com.taobao.tddl.optimizer.utils.PermutationGenerator; //导入依赖的package包/类
public JoinPermutationGenerator(QueryTreeNode qtn){
this.orderBys = qtn.getOrderBys();
this.groupBys = qtn.getGroupBys();
this.columns = qtn.getColumnsSelected();
this.valueFilter = qtn.getResultFilter();
this.limitFrom = qtn.getLimitFrom();
this.limitTo = qtn.getLimitTo();
this.allWhereFilter = qtn.getAllWhereFilter();
this.subqueryFilter = qtn.getSubqueryFilter();
this.getQueryNodesFromQueryTree(qtn);
pg = new PermutationGenerator(this.queryNodes);
visit(qtn);
}
示例3: JoinPermutationGenerator
import com.taobao.tddl.optimizer.utils.PermutationGenerator; //导入依赖的package包/类
public JoinPermutationGenerator(QueryTreeNode qtn){
this.orderBys = qtn.getOrderBys();
this.groupBys = qtn.getGroupBys();
this.columns = qtn.getColumnsSelected();
this.valueFilter = qtn.getResultFilter();
this.limitFrom = qtn.getLimitFrom();
this.limitTo = qtn.getLimitTo();
this.allWhereFilter = qtn.getAllWhereFilter();
this.getQueryNodesFromQueryTree(qtn);
pg = new PermutationGenerator(this.queryNodes);
visit(qtn);
}