Examples of condition()


Examples of com.facebook.presto.byteCode.control.IfStatement.IfStatementBuilder.condition()

        condition.pushThis();
        for (int channel = 0; channel < channels; channel++) {
            condition.getVariable("cursor_" + channel);
        }
        condition.invokeVirtual(classDefinition.getType(), "filter", type(boolean.class), nCopies(channels, type(TupleReadable.class)));
        ifStatement.condition(condition);

        Block trueBlock = new Block(compilerContext);
        if (projections.isEmpty()) {
            trueBlock
                    .comment("pageBuilder.declarePosition()")
View Full Code Here

Examples of com.facebook.presto.byteCode.control.IfStatement.IfStatementBuilder.condition()

                        .invokeInterface(RecordCursor.class, "advanceNextPosition", boolean.class)
                        .ifFalseGoto(done));

        // if (filter(cursor))
        IfStatementBuilder ifStatement = new IfStatementBuilder(compilerContext);
        ifStatement.condition(new Block(compilerContext)
                .pushThis()
                .getVariable("cursor")
                .invokeVirtual(classDefinition.getType(), "filter", type(boolean.class), type(RecordCursor.class)));

        Block trueBlock = new Block(compilerContext);
View Full Code Here

Examples of com.facebook.presto.byteCode.control.IfStatement.IfStatementBuilder.condition()

                condition.getVariable("wasNull")
                        .putVariable(caseWasNull.getLocalVariableDefinition())
                        .append(ifWasNullPopAndGoto(context, elseLabel, void.class, type.getJavaType(), type.getJavaType()));
            }
            condition.invokeDynamic(equalsFunction.getName(), equalsFunction.getCallSite().type(), equalsFunction.getBindingId());
            test.condition(condition);

            test.ifTrue(new Block(context).gotoLabel(matchLabel));
            test.ifFalse(elseNode);

            elseNode = test.build();
View Full Code Here

Examples of com.facebook.presto.byteCode.control.IfStatement.IfStatementBuilder.condition()

                type(boolean.class),
                ImmutableList.<ParameterizedType>builder()
                        .add(type(int.class))
                        .addAll(nCopies(filterInputChannels.size(), type(com.facebook.presto.spi.block.Block.class)))
                        .build());
        ifStatement.condition(condition);

        Block trueBlock = new Block(compilerContext);
        if (projections.isEmpty()) {
            trueBlock
                    .comment("pageBuilder.declarePosition()")
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.conditioners.ContentConditioner.condition()

        // process OR Pipeline OR next in that order).
        cup.setNextProcess(nextProcess);
        setNextProcess(cup);

        source.setSystemId(getUrlString());
        conditioner.condition(source, cup);
    }

    /**
     * Create the right kind of conditioner for the specified content type.
     * This is a factory method that may be moved to its own class in future
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.drivers.web.conditioners.HTMLResponseConditioner.condition()

            readBytes = input.read(buffer);
        }

        InputSource inputSource = new InputSource(
                new ByteArrayInputStream(out.toByteArray()));
        conditioner.condition(inputSource, xmlProcess);

        outputWriter.flush();
        char[] outputCharacters = outputWriter.toCharArray();
        String charsetName = "ISO-8859-1";
        XMLAssert.assertXMLEqual(new InputStreamReader(expected, charsetName),
View Full Code Here

Examples of de.danet.an.workflow.domain.TransitionDefinitionLocal.condition()

        prepStmt.setLong
      (offset++, Long.parseLong(t.to().key()));
        prepStmt.setString(offset++, td.group());
        prepStmt.setInt(offset++, td.order());
        prepStmt.setInt(offset++, td.conditionType());
        prepStmt.setString(offset++, td.condition());
    } catch (NumberFormatException re) {
        throw new SQLException(re.getMessage());
    }
    prepStmt.executeUpdate();
      }
View Full Code Here

Examples of de.danet.an.workflow.localapi.TransitionLocal.condition()

      = ((ProcessLocal)containerLocal()).transitionsLocalFrom(key());
  for (Iterator tri = fromTrans.iterator(); tri.hasNext();) {
      TransitionLocal trans = (TransitionLocal)tri.next();
      if (trans.conditionType() ==
                de.danet.an.workflow.api.Transition.COND_TYPE_EXCEPTION) {
    res.add (trans.condition());
      }
  }
  return (String[])res.toArray(new String[res.size ()]);
    }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

  public void testAskMatch() {
    NodeRelation nodeRel = translate1("ex:res1 rdf:type ex:Class1", "engine/type-bridge.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.EMPTY_SET, r.projections());
    assertEquals(Equality.createAttributeValue(table1id, "1"), r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.EMPTY_SET, nodeRel.variables());
  }

  public void testFindNoMatch() {
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

  public void testFindFixedMatch() {
    NodeRelation nodeRel = translate1("ex:res1 rdf:type ?type", "engine/type-bridge.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.EMPTY_SET, r.projections());
    assertEquals(Equality.createAttributeValue(table1id, "1"), r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.singleton(type), nodeRel.variables());
    assertEquals("Fixed(<http://example.org/Class1>)",
        nodeRel.nodeMaker(type).toString());
  }
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.