Examples of Join


Examples of aleph.Join

    Queens solution = new Queens(this, r, c);

    int nextRow = r+1;

    Join join = new Join();
    Iterator e = PE.roundRobin();
    for (int i = 0; i < N; i++) {
      if (solution.col[i] && solution.getLeftDiag(nextRow, i)
    && solution.getRightDiag(nextRow, i)) {
  solution.row[nextRow] = i;
  if (nextRow == N-1) {
    System.out.println(solution);
    return;    // no other solutions possible
  } else {    // fork and return
    Worker worker = new Worker(solution, nextRow, i, depth-1);
    worker.start((PE) e.next(), join);
  }
      }
    }
    join.waitFor();
  }
View Full Code Here

Examples of br.com.objectos.comuns.relational.search.Join

  public void restrict_on_related_entity() {
    Sql sql = sqlProvider.get();
    sql.select("*").from("COMUNS_RELATIONAL.OTHER").as("O").andLoadWith(loader);

    Join _simple = sql.join("SIMPLE", "S").on("O.SIMPLE_ID = S.ID");
    _simple.where("STRING").equalTo("BCD");

    List<Other> result = sql.list();
    List<String> strings = transform(result, Functions.toStringFunction());
    assertThat(strings.size(), equalTo(1));
    assertThat(strings.get(0), equalTo("Other{id=2, value=BCDCB}"));
View Full Code Here

Examples of com.asakusafw.compiler.flow.processor.operator.MasterJoinFlowFactory.Join

                CoreOperatorFactory c = new CoreOperatorFactory();
                Restructure<Ex2> r1 = c.restructure(pIn1, Ex2.class);
                Restructure<Ex2> r2 = c.restructure(pIn2, Ex2.class);

                MasterJoinFlowFactory f = new MasterJoinFlowFactory();
                Join join = f.join(pMst, c.confluent(r1, r2));
                c.stop(join.missed);
                pOut.add(join.joined);
            }
        };
        assertThat(tester.runFlow(flow), is(true));
View Full Code Here

Examples of com.asakusafw.compiler.flow.processor.operator.MasterJoinFlowFactory.Join

    }

    @Override
    protected void describe() {
        MasterJoinFlowFactory f = new MasterJoinFlowFactory();
        Join join = f.join(in1, in2);
        out1.add(join.joined);
        out2.add(join.missed);
    }
View Full Code Here

Examples of com.asakusafw.dmdl.thundergate.view.model.Join

                        new Select(n("t2.val2"), Aggregator.IDENT, n("val2")),
                }),
                new From(
                        n("t1"),
                        null,
                        new Join(
                                n("t2"),
                                null,
                                Arrays.asList(new On(n("t1.pk"), n("t2.pk"))))),
                Arrays.<Name>asList())));
    }
View Full Code Here

Examples of com.asakusafw.dmdl.thundergate.view.model.Join

                        new Select(n("b.val2"), Aggregator.IDENT, n("val2")),
                }),
                new From(
                        n("t1"),
                        "a",
                        new Join(
                                n("t2"),
                                "b",
                                Arrays.asList(new On(n("a.pk"), n("b.pk"))))),
                Arrays.<Name>asList())));
    }
View Full Code Here

Examples of com.asakusafw.modelgen.view.model.Join

                        new Select(n("t2.val2"), Aggregator.IDENT, n("val2")),
                }),
                new From(
                        n("t1"),
                        null,
                        new Join(
                                n("t2"),
                                null,
                                Arrays.asList(new On(n("t1.pk"), n("t2.pk"))))),
                Arrays.<Name>asList())));
    }
View Full Code Here

Examples of com.asakusafw.modelgen.view.model.Join

                        new Select(n("b.val2"), Aggregator.IDENT, n("val2")),
                }),
                new From(
                        n("t1"),
                        "a",
                        new Join(
                                n("t2"),
                                "b",
                                Arrays.asList(new On(n("a.pk"), n("b.pk"))))),
                Arrays.<Name>asList())));
    }
View Full Code Here

Examples of com.foundationdb.ais.model.Join

        List<Table> implicitlyDroppedTables = new ArrayList<>();

        for(Table table : schema.getTables().values()) {
            groupsToDrop.add(table.getGroup());
            // Cannot drop entire group if parent is not in the same schema
            final Join parentJoin = table.getParentJoin();
            if(parentJoin != null) {
                final Table parentTable = parentJoin.getParent();
                if(!parentTable.getName().getSchemaName().equals(schemaName)) {
                    explicitlyDroppedTables.add(table);
                } else {
                    implicitlyDroppedTables.add(table);
                }
View Full Code Here

Examples of com.netflix.lipstick.model.operators.P2jLogicalRelationalOperator.Join

     */
    protected String getColspan(P2jLogicalRelationalOperator oper) {
        Integer colspan = null;
        String operator = oper.getOperator().toLowerCase();
        if (operator.equals("lojoin") || operator.equals("locogroup")) {
            Join join;
            if (operator.equals("lojoin")) {
                join = ((P2jLOJoin) oper).getJoin();
            } else {
                join = ((P2jLOCogroup) oper).getGroup();
            }
            colspan = join.getExpression().size();
        }
        return colspan != null ? colspan.toString() : "2";
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.