Examples of evaluate()


Examples of com.cibuddy.core.build.configuration.IIndicatorBehaviorConfiguration.evaluate()

            IBuildStatusIndicator ibsi = getBuildStatusIndicatorByServiceIndex(index);
            // FIXME: incorporate a better configuration of indicators
//            IProjectIndicator ipi = getProjectIndicator(xfd.getIndicatorId());
            if(psec != null){
                if(ibsi != null){
                    StatusAction sa = psec.evaluate(this);
                    if(sa != null) {
                        ibsi.indicate(sa);
                    }
                } else {
                    LOG.info("no indicator found - I can't indicate anything without that one ");

Examples of com.clearnlp.component.evaluation.SRLEvalFull.evaluate()

        line = line.trim();
        if (line.isEmpty())   continue;
       
        gHeads = toSHeads(gold[goldIndex]);
        aHeads = toSHeads(auto[autoIndex]);
        eval.evaluate(gHeads, aHeads);
      }
    }
    catch (IOException e) {e.printStackTrace();}
   
    eval.print();

Examples of com.cloudera.cdk.data.PartitionExpression.evaluate()

  @Test
  public void testPartitionStrategy() {
    String expr = "hash(\"username\", \"username_part\", 2)";
    PartitionExpression expression = new PartitionExpression(expr, true);

    PartitionStrategy strategy = expression.evaluate();
    List<FieldPartitioner> fieldPartitioners = strategy.getFieldPartitioners();
    Assert.assertEquals(1, fieldPartitioners.size());
    FieldPartitioner fp = fieldPartitioners.get(0);
    Assert.assertEquals(HashFieldPartitioner.class, fp.getClass());
    Assert.assertEquals("username", fp.getSourceName());

Examples of com.cloudera.cdk.morphline.scriptengine.java.ScriptEvaluator.evaluate()

  }
 
  @Test
  public void testBasic() throws Exception {
    ScriptEvaluator script = new ScriptEvaluator(javaImports, "return x * 2; ", Integer.class, new String[] { "x" }, new Class[] { Integer.class }, "myQuery");
    Object result = script.evaluate(new Object[] { new Integer(1) });
    assertEquals(result, new Integer(2));
  }

  @Test
  public void testVoid() throws Exception {

Examples of com.codingcrayons.aspectfaces.evaluation.Evaluator.evaluate()

      } catch (ClassNotFoundException e) {
        throw new EvaluatorException("Evaluator class " + context.getConfiguration().getEvaluatorClassName()
          + " not found", e);
      }

      if (!evaluator.evaluate(evaluable.getEvaluableValue(provider))) {
        this.metaProperty.setApplicable(false);
      }
    }
  }

Examples of com.ecyrd.speed4j.util.Percentile.evaluate()

     */
    public double getPercentile( double percentile )
    {
        Percentile p = new Percentile();

        return p.evaluate( m_times.m_values, 0, m_times.size(), percentile );
    }

    /**
     *  A very simple class to hold a number of double values in memory fairly
     *  optimally (this is better than using a Double array, since Doubles take

Examples of com.envoisolutions.sxc.xpath.XPathEvaluator.evaluate()

        builder.listen(target, eventHandler);

        XPathEvaluator evaluator = builder.compile();

        for(int i = 0; i < NUM_WARMUPS; i++) {
            evaluator.evaluate(getMessageReader(message));
        }

        long start = System.currentTimeMillis();
        for(int i = 0; i < NUM_ITERATIONS; i++) {
            evaluator.evaluate(getMessageReader(message));

Examples of com.espertech.esper.epl.expression.ExprEvaluator.evaluate()

                    widener = TypeWidenerFactory.getCheckPropertyAssignType(columnNames[i], arrayReturnType, desc.getType(), desc.getPropertyName());
                    final ExprEvaluator inner = evaluator;
                    evaluator = new ExprEvaluator() {
                        public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
                        {
                            Object result = inner.evaluate(eventsPerStream, isNewData, exprEvaluatorContext);
                            if (!(result instanceof EventBean[])) {
                                return null;
                            }
                            EventBean[] events = (EventBean[]) result;
                            Object values = Array.newInstance(componentReturnType, events.length);

Examples of com.espertech.esper.epl.expression.ExprPreviousEvalStrategy.evaluate()

    }

    public Object evaluate(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext) {
        int agentInstanceId = exprEvaluatorContext.getAgentInstanceIds()[0];
        ExprPreviousEvalStrategy strategy = strategies.getArray()[agentInstanceId];
        return strategy.evaluate(eventsPerStream, exprEvaluatorContext);
    }

    public Collection<EventBean> evaluateGetCollEvents(EventBean[] eventsPerStream, ExprEvaluatorContext context) {
        int agentInstanceId = context.getAgentInstanceIds()[0];
        ExprPreviousEvalStrategy strategy = strategies.getArray()[agentInstanceId];

Examples of com.espertech.esper.epl.expression.ExprPriorEvalStrategy.evaluate()

    }

    public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext, int streamNumber, ExprEvaluator evaluator, int constantIndexNumber) {
        int agentInstanceId = exprEvaluatorContext.getAgentInstanceIds()[0];
        ExprPriorEvalStrategy strategy = strategies.getArray()[agentInstanceId];
        return strategy.evaluate(eventsPerStream, isNewData, exprEvaluatorContext, streamNumber, evaluator, constantIndexNumber);
    }
}
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.