Examples of project()


Examples of org.apache.flink.test.recordJobs.util.Tuple.project()

    Assert.assertTrue(t.getNumberOfColumns() == 3);
    Assert.assertTrue(t.getStringValueAt(0).equals("a"));
    Assert.assertTrue(t.getStringValueAt(1).equals("b"));
    Assert.assertTrue(t.getStringValueAt(2).equals("d"));
   
    t.project(-1);
    Assert.assertTrue(t.getNumberOfColumns() == 3);
    Assert.assertTrue(t.getStringValueAt(0).equals("a"));
    Assert.assertTrue(t.getStringValueAt(1).equals("b"));
    Assert.assertTrue(t.getStringValueAt(2).equals("d"));
  }
View Full Code Here

Examples of org.jquantlib.math.optimization.ProjectedCostFunction.project()

        final Array inversedTransformatedGuess = new Array(transformation_.inverse(guess));

        final ProjectedCostFunction constrainedSABRError = new ProjectedCostFunction(costFunction, inversedTransformatedGuess, parameterAreFixed);

        final Array projectedGuess = new Array(constrainedSABRError.project(inversedTransformatedGuess));

        final NoConstraint constraint = new NoConstraint();
        final Problem problem = new Problem(constrainedSABRError, constraint, projectedGuess);
        itsCoeffs.SABREndCriteria_ = optMethod_.minimize(problem, endCriteria_);
        final Array projectedResult = new Array(problem.currentValue());
View Full Code Here

Examples of org.jquantlib.math.optimization.ProjectedCostFunction.project()

        final Array inversedTransformatedGuess = new Array(transformation_.inverse(guess));

        final ProjectedCostFunction constrainedSABRError = new ProjectedCostFunction(costFunction, inversedTransformatedGuess, parameterAreFixed);

        final Array projectedGuess = new Array(constrainedSABRError.project(inversedTransformatedGuess));

        final NoConstraint constraint = new NoConstraint();
        final Problem problem = new Problem(constrainedSABRError, constraint, projectedGuess);
        itsCoeffs.SABREndCriteria_ = optMethod_.minimize(problem, endCriteria_);
        final Array projectedResult = new Array(problem.currentValue());
View Full Code Here

Examples of org.objectweb.medor.query.jorm.lib.QueryBuilder.project()

            }
        }

        try {
            String n = iv.alias + "." + Field.PNAMENAME;
            fields.put(n, theqb.project(iv.alias, define(theqb, iv.alias, iv.alias)));
            for (int i = 0; i < iv.getDeclaredPathLength(); i++) {
                String path = iv.getMergedPath(i);
                if (!testcontains.contains(path) && !isEmptys.contains(path)) {
                    fields.put(path, theqb.project(path, define(theqb, path, null)));
                }
View Full Code Here

Examples of org.objectweb.medor.query.jorm.lib.QueryBuilder.project()

            String n = iv.alias + "." + Field.PNAMENAME;
            fields.put(n, theqb.project(iv.alias, define(theqb, iv.alias, iv.alias)));
            for (int i = 0; i < iv.getDeclaredPathLength(); i++) {
                String path = iv.getMergedPath(i);
                if (!testcontains.contains(path) && !isEmptys.contains(path)) {
                    fields.put(path, theqb.project(path, define(theqb, path, null)));
                }
          }
        } catch (Exception e) {
            throw new SpeedoException("Error during the parsing of JDOQL:", e);
        }
View Full Code Here

Examples of org.objectweb.medor.query.jorm.lib.QueryBuilder.project()

            }
            String[] spli = splitPath(pathset);
            String rest = mergePath(spli, 1, spli.length - 1);
            QueryBuilder subquery = new QueryBuilder(qb);
            subquery.define("", qb.navigate(spli[0]));
            QueryTreeField setField = subquery.project(subquery.navigate(rest));
            Expression e = new MemberOf(
                    Collections.singletonList(((Object[]) params.get(name))[1]),
                    Collections.singletonList(new BasicFieldOperand(setField)));
            if (debug) {
                logger.log(BasicLevel.DEBUG, tab + "push(" + ExpressionPrinter.e2str(e) + ")");
View Full Code Here

Examples of org.objectweb.medor.query.jorm.lib.QueryBuilder.project()

                } else {
                    //x.y.bs.contains(u.v.b)
                    String rest = mergePath(spli, 1, spli.length - 2);
                    QueryBuilder subquery = new QueryBuilder(qb);
                    subquery.define("", qb.navigate(spli[0]));
                    QueryTreeField setField = subquery.project(subquery.navigate(rest));
                    QueryTreeField f = (QueryTreeField) fields.get(name);

                    stack.push(new MemberOf(
                            Collections.singletonList(
                                    new BasicFieldOperand(f)),
View Full Code Here

Examples of org.objectweb.medor.query.jorm.lib.QueryBuilder.project()

               logger.log(BasicLevel.DEBUG, tab + "Visit IsEmpty: " + begin);
            }
            String rest = mergePath(splitted, 1, splitted.length - 2);
            QueryBuilder subquery = new QueryBuilder(qb);
            subquery.define("", qb.navigate(splitted[0]));
            Field f = subquery.project(subquery.navigate(rest));
            stack.push(new IsEmpty(new BasicFieldOperand(f)));
            return;
        }
               
        if (debug) {
View Full Code Here

Examples of org.sonar.server.issue.index.IssueAuthorizationDoc.project()

    assertThat(tester.get(RoleDao.class).selectUserPermissions(session, user.getLogin(), project.getId())).hasSize(1);

    // Check in index
    IssueAuthorizationDoc issueAuthorizationDoc = index.getNullableByKey(project.uuid());
    assertThat(issueAuthorizationDoc).isNotNull();
    assertThat(issueAuthorizationDoc.project()).isEqualTo(project.uuid());
    assertThat(issueAuthorizationDoc.users()).containsExactly(user.getLogin());
    assertThat(issueAuthorizationDoc.groups()).isEmpty();
  }

  @Test
View Full Code Here

Examples of org.sonar.server.issue.index.IssueAuthorizationDoc.project()

    assertThat(tester.get(RoleDao.class).selectUserPermissions(session, user2.getLogin(), project.getId())).hasSize(1);

    // Check in index
    IssueAuthorizationDoc issueAuthorizationDoc = index.getNullableByKey(project.uuid());
    assertThat(issueAuthorizationDoc).isNotNull();
    assertThat(issueAuthorizationDoc.project()).isEqualTo(project.uuid());
    assertThat(issueAuthorizationDoc.users()).containsExactly(user2.getLogin());
    assertThat(issueAuthorizationDoc.groups()).isEmpty();
  }

  @Test
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.