Examples of Expr


Examples of com.hp.hpl.jena.sparql.expr.Expr

                direction = Query.ORDER_ASCENDING ;
            else
                direction = Query.ORDER_DESCENDING ;
            item = item.getList().get(1) ;
        }
        Expr expr = BuilderExpr.buildExpr(item) ;
        if ( expr.isVariable() )
            return new SortCondition(expr.getExprVar().asVar(), direction) ;
        else
            return new SortCondition(expr, direction) ;
    }
View Full Code Here

Examples of com.hp.jena.rules.ast.Expr

        assertFalse( itemBlank.isExpr() );
        }
   
    @Test public void testExprAccessors()
        {
        Expr e = new Expr( "f", new ArrayList<Expr>() );
        Item item = Item.createExpr( e );
        assertSame( e, item.getExpr() );
        assertFalse( item.isURI() );
        assertFalse( item.isVariable() );
        assertFalse( item.isBlank() );
View Full Code Here

Examples of com.mossle.bpm.expr.Expr

            if ((assignee.indexOf("&&") != -1)
                    || (assignee.indexOf("||") != -1)) {
                logger.info("assignee : {}", assignee);

                List<String> candidateUsers = new Expr().evaluate(assignee,
                        this);
                logger.info("candidateUsers : {}", candidateUsers);
                delegateTask.addCandidateUsers(candidateUsers);
            } else {
                String value = expressionManager.createExpression(assignee)
View Full Code Here

Examples of com.odiago.flumebase.parser.Expr

    GenericData.Record record = new GenericData.Record(getOutputSchema());

    // Evaluate all our input expressions, left-to-right, and emit
    // their results into the output record.
    for (AliasedExpr aliasedExpr : mExprs) {
      Expr expr = aliasedExpr.getExpr();
      Object result = nativeToAvro(expr.eval(e), expr.getResolvedType());
      String fieldName = aliasedExpr.getAvroLabel();
      record.put(fieldName, result);
    }

    // Now add to our output record, any fields that we can pull in directly from
View Full Code Here

Examples of com.odiago.flumebase.parser.Expr

    mAggregateExprs = aggregateNode.getAggregateExprs();
    assert mAggregateExprs != null;
    mPropagateFields = aggregateNode.getPropagateFields();

    Expr windowExpr = aggregateNode.getWindowExpr();
    assert windowExpr.isConstant();
    try {
      mWindowSpec = (WindowSpec) windowExpr.eval(new EmptyEventWrapper());
      assert mWindowSpec.getRangeSpec().isConstant();
      mTimeSpan = (TimeSpan) mWindowSpec.getRangeSpec().eval(new EmptyEventWrapper());
    } catch (IOException ioe) {
      // The only way this can be thrown is if the window expr isn't actually constant.
      // This should not happen due to the assert above..
View Full Code Here

Examples of com.odiago.flumebase.parser.Expr

    // For each aggregation function we're performing, insert this event into
    // the bucket for the aggregate function.
    assert buckets.size() == mAggregateExprs.size();
    for (int i = 0; i < mAggregateExprs.size(); i++ ) {
      AliasedExpr aliasExpr = mAggregateExprs.get(i);
      Expr expr = aliasExpr.getExpr();
      assert expr instanceof FnCallExpr;
      FnCallExpr fnCall = (FnCallExpr) expr;
      Bucket bucket = buckets.get(i);
      fnCall.insertAggregate(e, bucket);
    }
View Full Code Here

Examples of com.stuffwithstuff.magpie.ast.Expr

    return Pattern.record(fields);
  }
 
  private static Pattern primary(MagpieParser parser) {
    if (parser.match(TokenType.IS)) {
      Expr type = parser.parsePrecedence(Precedence.COMPARISON);
      return Pattern.type(type);
    } else if (parser.match(TokenType.EQEQ)) {
      Expr value = parser.parsePrecedence(Precedence.COMPARISON);
      return Pattern.value(value);
    } if (parser.match(TokenType.BOOL)) {
      return Pattern.value(Expr.bool(parser.last(1).getBool()));
    } else if (parser.match(TokenType.INT)) {
      return Pattern.value(Expr.int_(parser.last(1).getInt()));
View Full Code Here

Examples of com.wolfram.jlink.Expr

      link.waitForAnswer();
      mapper = link.getExpr();

      link.evaluate(conf.get(MathematicaJob.MAPPER));
      link.waitForAnswer();
      Expr mapFn = link.getExpr();

      link.putFunction("Set", 2);
        link.put(mapper);
        link.put(mapFn);
      link.endPacket();
View Full Code Here

Examples of condor.classad.Expr

            }
        }
    }

    public ArrayList<OutputDataRecord> getOutputData() throws Exception {
        Expr expr = attributes.get(OUTPUTDATA.toLowerCase());
        if (expr == null) {
            return null;
        }

        ArrayList<OutputDataRecord> outputDataAttribute = new ArrayList<OutputDataRecord>(0);

        if (expr instanceof ListExpr) {
            Iterator iteratorExpr = ((ListExpr) expr).iterator();
            RecordExpr jdlRecExpr = null;
            Expr exprTmp = null;
            OutputDataRecord outputDataRecord = null;

            while (iteratorExpr.hasNext()) {
                outputDataRecord = new OutputDataRecord();
                jdlRecExpr = (RecordExpr) iteratorExpr.next();

                exprTmp = jdlRecExpr.lookup(OUTPUTDATA_OUTPUTFILE);
                if (exprTmp == null) {
                    throw new Exception("OutputFile is mandatory for the OutputData jdl attribute.");
                }
                outputDataRecord.setODOutputFile(exprTmp.stringValue().trim());

                exprTmp = jdlRecExpr.lookup(OUTPUTDATA_LOGICALFILENAME);
                outputDataRecord.setODLogicalFilename((exprTmp != null) ? exprTmp.stringValue().trim() : "");

                exprTmp = jdlRecExpr.lookup(OUTPUTDATA_STORAGEELEMENT);
                outputDataRecord.setODStorageElement((exprTmp != null) ? exprTmp.stringValue().trim() : "");

                outputDataAttribute.add(outputDataRecord);
            }
        } else {
            throw new Exception("Bad format for 'OutputData' jdl attribute.");
View Full Code Here

Examples of cvc3.Expr

    public ExprManagerMut getExprManager() throws Cvc3Exception {
  return new ExprManagerMut(jniGetExprManager(embedded()), embeddedManager());
    }

    public Expr nullExpr() throws Cvc3Exception {
  return new Expr(jniNullExpr(embedded()), embeddedManager());
    }
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.