Examples of evaluate()


Examples of com.jayway.jsonpath.internal.Path.evaluate()

                //This will use cache for document ($) queries
                PredicateContextImpl ctxi = (PredicateContextImpl) ctx;
                res = ctxi.evaluate(leftPath);
            } else {
                Object doc = leftPath.isRootPath()?ctx.root():ctx.item();
                res = leftPath.evaluate(doc, ctx.root(), ctx.configuration()).getValue();
            }
        }
        return res;
    }

Examples of com.jayway.jsonpath.internal.token.PredicateContextImpl.evaluate()

            Path leftPath = (Path) target;

            if(ctx instanceof PredicateContextImpl){
                //This will use cache for document ($) queries
                PredicateContextImpl ctxi = (PredicateContextImpl) ctx;
                res = ctxi.evaluate(leftPath);
            } else {
                Object doc = leftPath.isRootPath()?ctx.root():ctx.item();
                res = leftPath.evaluate(doc, ctx.root(), ctx.configuration()).getValue();
            }
        }

Examples of com.k_int.IR.SearchTask.evaluate()

                // able to pass in a predicate to wait for here,
                //e.g. evaluate(10000, "NumHits > 100 OR Status=Complete");
                LOGGER.finer("Evaluate Search Task");

                try {
                    st.evaluate(10000);
                } catch (TimeoutExceededException tee) {
                    LOGGER.finer(
                        "Timeout exceeded waiting for search to complete");
                }

Examples of com.meidusa.amoeba.parser.expression.ColumnExpression.evaluate()

            Map<Column, Comparative> columnMap = tablesMap.get(table);
            if (columnMap == null) {
                columnMap = new HashMap<Column, Comparative>();
                tablesMap.put(table, columnMap);
            }
            columnMap.put(colExpression.getColumn(), (Comparative) colExpression.evaluate(parameters));
        }
       
       
    }

Examples of com.meidusa.amoeba.parser.expression.Expression.evaluate()

  public Comparable evaluate(List<Expression> list,Object[] parameters) throws ParseException {
    if(list.size()==2){
      Expression e1 = list.get(0);
      Expression e2 = list.get(1);
      if(e1.canEvaluate() && e2.canEvaluate()){
        Comparable comparable = com.meidusa.amoeba.sqljep.function.Add.add(e1.evaluate(parameters),e2.evaluate(parameters));
        return comparable;
      }
    }
    return null;
  }

Examples of com.meidusa.amoeba.sqljep.function.PostfixCommandI.evaluate()

    if (debug) {
      System.out.println("Stack size after childrenAccept: " + runtime.stack.size());
    }
   
    Comparable<?>[] parameters = pfmc.evaluate(node, runtime);
   
    if(pfmc.isAutoBox()){
      ComparativeBaseList list = null;
      int index = -1;
      for(int i=0;i<parameters.length;i++){

Examples of com.mobixess.jodb.soda.api.Evaluation.evaluate()

            }
            if(activeObject!=null){
                Evaluation evaluation = (Evaluation) getObject();
                CandidateImpl candidateImpl = _candidateImpl.get();
                candidateImpl.init(activeObject);
                evaluation.evaluate(candidateImpl);
                if(candidateImpl.isInclude()){
                    processCompareResult(COMPARE_RESULT.EQUAL);
                }else{
                    processCompareResult(COMPARE_RESULT.SMALLER);
                }

Examples of com.neemsoft.jmep.Expression.evaluate()

  }

  private float doEvaluateCalculation(String calculation) throws ParseException {
    try {
      Expression exp = new Expression(calculation, env);
      Object result = exp.evaluate();
      if (result instanceof Double) {
        return ((Double) result).floatValue();
      } else if (result instanceof Integer) {
        return ((Integer) result).floatValue();
      } else throw new ArgumentParseException("Parse exception: expected Double or Integer, but got:"

Examples of com.opengamma.analytics.financial.covariance.CovarianceMatrixCalculator.evaluate()

    final Double[] keys = new Double[len];
    for (int i = 0; i < timeSeries.length; i++) {
      keys[i] = (double) i;
    }
    // Calculate the co-variance matrix
    final DoubleMatrix2D unlabelled = calculator.evaluate(timeSeries);
    // Label it
    return new DoubleLabelledMatrix2D(keys, labels, keys, labels, unlabelled.getData());
  }

  // CompiledFunctionDefinition

Examples of com.opengamma.analytics.financial.equity.capm.CAPMBetaCalculator.evaluate()

    DoubleTimeSeries<?>[] series = TimeSeriesIntersector.intersect(assetReturn, marketReturn);
    assetReturn = series[0];
    marketReturn = series[1];
    final CAPMBetaCalculator calculator = getBetaCalculator(constraints.getValues(ValuePropertyNames.COVARIANCE_CALCULATOR),
        constraints.getValues(ValuePropertyNames.VARIANCE_CALCULATOR));
    final double beta = calculator.evaluate(assetReturn, marketReturn);
    return Sets.newHashSet(new ComputedValue(new ValueSpecification(ValueRequirementNames.CAPM_BETA, target.toSpecification(), resultProperties), beta));
  }

  @Override
  public Set<ValueRequirement> getRequirements(final FunctionCompilationContext context, final ComputationTarget target, final ValueRequirement desiredValue) {
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.