Examples of eval()


Examples of org.apache.flex.forks.batik.ext.awt.geom.Cubic.eval()

                        float min = 0;
                        float max = 1;
                        Point2D.Double p;
                        for (;;) {
                            float t = (min + max) / 2;
                            p = c.eval(t);
                            double x = p.getX();
                            if (Math.abs(x - interpolation) < tolerance) {
                                break;
                            }
                            if (x < interpolation) {
View Full Code Here

Examples of org.apache.jmeter.util.BeanShellInterpreter.eval()

            res.setDataType(SampleResult.TEXT); // assume text output - script can override if necessary

            Object bshOut;

      if (fileName.length() == 0) {
        bshOut = bshInterpreter.eval(request);
      } else {
        bshOut = bshInterpreter.source(fileName);
      }

      if (bshOut != null) {// Set response data
View Full Code Here

Examples of org.apache.oodt.cas.metadata.preconditions.PreCondEvalUtils.eval()

               PreCondEvalUtils evalUtils = new PreCondEvalUtils(
                     this.getApplicationContext());
               for (int i = 0; i < specs.size(); i++) {
                  List<String> preCondComparatorIds = ((MetExtractorSpec) specs
                        .get(i)).getPreCondComparatorIds();
                  if (!evalUtils.eval(preCondComparatorIds, product))
                     return false;
               }
            }
            return true;
         } else {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.function.PDFunction.eval()

                        }
                        else
                        {
                            input[0] =  value / maxValue;
                        }
                        float[] mappedColor = tintTransformFunc.eval(input);
                        int columnOffset = j * numberOfComponents;
                        for ( int k = 0; k < numberOfComponents; k++ )
                        {
                            // redo scaling for every single color value
                            float mappedValue = mappedColor[k];
View Full Code Here

Examples of org.apache.pig.impl.eval.cond.Cond.eval()

        return new OutputCollector<WritableComparable, Tuple>(){
            public void collect(WritableComparable key, Tuple value) throws IOException {
                ArrayList<Cond> conditions = splitSpec.conditions;
                for (int i=0; i< conditions.size(); i++){
                    Cond cond = conditions.get(i);
                    if (cond.eval(value)){
                        //System.out.println("Writing " + t + " to condition " + cond);
                        sideFileWriters.get(i).write(null, value);
                    }
                }
               
View Full Code Here

Examples of org.apache.shale.util.Tags.eval()

             }
         } else {
            if (value != null && value instanceof String
                && isValueReference((String) e.getValue())) {

                value = tagUtils.eval((String) e.getValue());
            }
         }

         if (value == null) {
            continue next;
View Full Code Here

Examples of org.apache.sling.api.scripting.SlingScript.eval()

        final boolean webClient = "webconsole".equals(WebConsoleUtil.getParameter(req,"client"));

        SlingScript slingScript = resource.adaptTo(SlingScript.class);
        try {
            log.debug("Executing script {}",script);
            slingScript.eval(bindings);
        } catch (Throwable t){
            if(!webClient){
                resp.setStatus(500);
            }
            pw.println(exceptionToString(t));
View Full Code Here

Examples of org.apache.sling.scripting.xproc.xpl.api.Pipeline.eval()

   
    try {
      XplBuilder xplBuilder = new XplBuilder();
      Pipeline xpl = (Pipeline) xplBuilder.build(reader);
      xpl.getEnv().setSling(helper);
      xpl.eval();
    } catch (Throwable t) {
      log.error("Failure running XProc script.", t);
      final ScriptException se = new ScriptException("Failure running XProc script " + scriptName);
      se.initCause(t);
      throw se;
View Full Code Here

Examples of org.apache.tajo.engine.eval.EvalNode.eval()

        throw new PlanningException("No targets");
      }
      Tuple outTuple = new VTuple(targets.length);
      for (int i = 0; i < targets.length; i++) {
        EvalNode eval = targets[i].getEvalTree();
        outTuple.put(i, eval.eval(null, null));
      }

      Schema schema = PlannerUtil.targetToSchema(targets);
      RowStoreUtil.RowStoreEncoder encoder = RowStoreUtil.createEncoder(schema);
      byte [] serializedBytes = encoder.toBytes(outTuple);
View Full Code Here

Examples of org.apache.tajo.engine.eval.FieldEval.eval()

    // Targets or search conditions may contain column references.
    // However, actual values absent in tuples. So, Replace all column references by constant datum.
    for (Column column : columnPartitionSchema.toArray()) {
      FieldEval targetExpr = new FieldEval(column);
      Datum datum = targetExpr.eval(columnPartitionSchema, partitionRow);
      ConstEval constExpr = new ConstEval(datum);

      for (Target target : plan.getTargets()) {
        if (target.getEvalTree().equals(targetExpr)) {
          if (!target.hasAlias()) {
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.