Examples of addCondition()


Examples of de.fuberlin.wiwiss.d2rq.parser.RelationBuilder.addCondition()

    RelationBuilder result = new RelationBuilder(database);
    for (Join join: SQL.parseJoins(joins)) {
      result.addJoinCondition(join);
    }
    for (String condition: conditions) {
      result.addCondition(condition);
    }
    result.addAliases(aliases());
    for (ProjectionSpec projection: nodeMaker().projectionSpecs()) {
      result.addProjection(projection);
    }
View Full Code Here

Examples of eu.admire.ogsadai.client.toolkit.activity.filter.ConditionalSplit.addCondition()

        query.setResourceID(resource);
        query.addExpression("SELECT * FROM replace_values");
        CalculateMean mean = new CalculateMean();
        mean.connectDataInput(query.getDataOutput());
        ConditionalSplit split = new ConditionalSplit();
        split.addCondition("A>=3.0 AND A<3.5 OR A IS NULL");
        split.connectDataInput(query.getDataOutput());
        ReplaceWithValue replace = new ReplaceWithValue();
        replace.connectValuesInput(mean.getDataOutput());
        replace.connectDataInput(split.getTrueOutput());
        replace.addColumns(new int[]{0});
View Full Code Here

Examples of lineage2.gameserver.stats.triggers.TriggerInfo.addCondition()

      {
        Element subElement = subIterator.next();
        Condition condition = parseFirstCond(subElement);
        if (condition != null)
        {
          trigger.addCondition(condition);
        }
      }
    }
  }
 
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.GenerationCondition.addCondition()

    generationCondition.setExcludeViews(!getAreViewsIncluded());
    generationCondition.setDefaultType(getFilterFileType());
    List<String> filenames = ParserUtils.getList(getFilterFile());
    String conditionType = getConditionType();
    for (String filename : filenames) {
      generationCondition.addCondition(getCondition(filename, conditionType));
   
    return generationCondition;
  }

  private String getConditionType() {
View Full Code Here

Examples of org.apache.accumulo.core.data.ConditionalMutation.addCondition()

    for (int i : banks) {
      ConditionalMutation m = new ConditionalMutation(Utils.getBank(i));
      int acceptedCount = 0;
      for (int j = 0; j < numAccts; j++) {
        String cf = Utils.getAccount(j);
        m.addCondition(new Condition(cf, "seq"));
        m.put(cf, "bal", "100");
        m.put(cf, "seq", Utils.getSeq(0));

        if (j % 1000 == 0 && j > 0) {
          Status status = cw.write(m).getStatus();
View Full Code Here

Examples of org.apache.garbage.tree.TemplateIf.addCondition()

  TemplateIf event = new TemplateIf(this);
    jj_consume_token(T_TEMPLATE_IF);
    pushState(EXPRESSION);
    expression = p_expression_data();
    popState();
    p_block(event.addCondition(this, expression));
    label_3:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case T_TEMPLATE_ELIF:
        ;
View Full Code Here

Examples of org.drools.decisiontable.model.Rule.addCondition()

        Rule rule = new Rule( "rule", new Integer(1) ); //$NON-NLS-1$
        rule.setComment( "a comment" ); //$NON-NLS-1$

        Condition cond = new Condition( );
        cond.setSnippet( "System.currentTimeMillis() > 42 /* comment here */" );
        rule.addCondition( cond );

        Consequence cons = new Consequence( );
        cons.setSnippet( "System.out.println(\"yeah\");" );
        rule.addConsequence( cons );

View Full Code Here

Examples of org.drools.decisiontable.model.Rule.addCondition()

                              new Integer(1) );
        rule.setComment( "a comment" );
        Condition cond = new Condition( );

        cond.setSnippet( "<badformedxml>" );
        rule.addCondition( cond );

        Ruleset ruleset = new Ruleset( "xyz" );
        ruleset.addRule( rule );
        try
        {          
View Full Code Here

Examples of org.drools.decisiontable.model.Rule.addCondition()

        rule.setComment( "a comment" ); //$NON-NLS-1$
        Condition cond = new Condition( );

        // TODO: find out why run out of memory when use the // comment notation
        cond.setSnippet( "this.is.not.java /*this.is.not.java*/" ); //$NON-NLS-1$
        rule.addCondition( cond );

        Ruleset ruleset = new Ruleset( "xyz" ); //$NON-NLS-1$
        ruleset.addRule( rule );

        try
View Full Code Here

Examples of org.drools.rule.Rule.addCondition()

                                              this.ruleSetReader.getFactoryContext( ),
                                              config );

            for (int i = 0; i < conditions.length; i++)
            {
                rule.addCondition( conditions[i] );
            }
        }
        catch ( FactoryException e )
        {   
            throw new SAXParseException( "error constructing condition",
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.