当前位置: 首页>>代码示例>>Java>>正文


Java PermutationGenerator类代码示例

本文整理汇总了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);
    }

}
 
开发者ID:loye168,项目名称:tddl5,代码行数:17,代码来源:PermutationGeneratorTest.java

示例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);
}
 
开发者ID:loye168,项目名称:tddl5,代码行数:15,代码来源:JoinPermutationGenerator.java

示例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);
}
 
开发者ID:beebeandwer,项目名称:TDDL,代码行数:14,代码来源:JoinPermutationGenerator.java


注:本文中的com.taobao.tddl.optimizer.utils.PermutationGenerator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。