Examples of collect()


Examples of ch.hortis.sonar.mvn.mc.MeasuresCollector.collect()

      MetricService metricService = new MetricService(manager);
      RulesService rulesService = new RulesService(manager);
      for (Report report : Report.getReports()) {
        MeasuresCollector collector = report.getMeasuresCollector();
        if (collector.initialize(mavenProject, metricService, rulesService, filesRepository)) {
          List<Collectable> collected = collector.collect();
          persistCollectables(snapshot, collected);
        }
      }
    }
  }
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.ast.java.CommentCollector.collect()

    }

    public static List<Comment> extractComments(JavaCompilation sCompilationUnit) {
        CommentCollector collector =
                new CommentCollector(sCompilationUnit.getCompilationUnit(), sCompilationUnit.getSource());
        collector.collect();
        return collector.getComments();
    }

    public static AbstractMethodDeclaration findMethod(CompilationUnitDeclaration cu, String methodName) {
        for (TypeDeclaration type : cu.types) {
View Full Code Here

Examples of com.alibaba.dubbo.monitor.Monitor.collect()

                // ---- 服务提供方监控 ----
                localPort = invoker.getUrl().getPort();
                remoteKey = MonitorService.CONSUMER;
                remoteValue = context.getRemoteHost();
            }
            monitor.collect(new URL(Constants.COUNT_PROTOCOL,
                    NetUtils.getLocalHost(), localPort,
                    service + "/" + method,
                    MonitorService.APPLICATION, application,
                    MonitorService.INTERFACE, service,
                    MonitorService.METHOD, method,
View Full Code Here

Examples of com.clearnlp.component.tagger.EnglishOnlinePOSTagger.collect()

    {
      reader.open(UTInput.createBufferedFileReader(trainFile));
     
      while ((tree = reader.next()) != null)
      {
        component.collect(tree);
        if (++total%5000 == 0) LOG.info(".");
      }
     
      reader.close();
    LOG.info("\n");
View Full Code Here

Examples of com.headius.invokebinder.SmartBinder.collect()

        if (arity == -1) {
            // do nothing, already have IRubyObject[] in args
        } else if (arity == 0) {
            binder = binder.insert(argOffset, "args", IRubyObject.NULL_ARRAY);
        } else {
            binder = binder
                    .collect("args", "arg[0-9]+");
        }

        // add block if needed
        if (signature.lastArgType() != Block.class) {
View Full Code Here

Examples of edu.cmu.sphinx.decoder.adaptation.Stats.collect()

       
        // Stats class is used to collect speaker-specific data
        Stats stats = recognizer.createStats(1);
        recognizer.startRecognition(stream);
        while ((result = recognizer.getResult()) != null) {
            stats.collect(result);
        }
        recognizer.stopRecognition();
       
        // Transform represents the speech profile
        Transform transform = stats.createTransform();
View Full Code Here

Examples of eu.stratosphere.pact.runtime.shipping.RecordOutputCollector.collect()

              while (!this.taskCanceled && !inFormat.reachedEnd()) {
                // build next pair and ship pair if it is valid
                typedRecord.clear();
                Record returnedRecord = null;
                if ((returnedRecord = inFormat.nextRecord(typedRecord)) != null) {
                  output.collect(returnedRecord);
                }
              }
            } else if (this.output instanceof ChainedCollectorMapDriver) {
              // Record going to a chained map task
              @SuppressWarnings("unchecked")
View Full Code Here

Examples of net.sf.kpex.prolog.Sink.collect()

  @Override
  public int exec(Prog p)
  {
    Sink s = (Sink) getArg(0);
    Term X = s.collect();
    if (null == X)
    {
      X = Const.NO;
    }
    else
View Full Code Here

Examples of org.apache.accumulo.core.iterators.aggregation.NumArraySummation.collect()

 
  public void test2() {
    try {
      NumArraySummation nas = new NumArraySummation();
      long[] la = {1l, 2l, 3l};
      nas.collect(new Value(NumArraySummation.longArrayToBytes(la)));
      long[] la2 = {3l, 2l, 1l, 0l};
      nas.collect(new Value(NumArraySummation.longArrayToBytes(la2)));
      la = NumArraySummation.bytesToLongArray(nas.aggregate().get());
      assertTrue(la.length == 4);
      for (int i = 0; i < la.length - 1; i++) {
View Full Code Here

Examples of org.apache.accumulo.core.iterators.aggregation.NumSummation.collect()

 
  public void test5() {
    try {
      NumSummation ns = new NumSummation();
      for (long l = -5l; l < 8l; l++) {
        ns.collect(new Value(NumSummation.longToBytes(l)));
      }
      long l = NumSummation.bytesToLong(ns.aggregate().get());
      assertTrue("l was " + l, l == 13);
     
      ns.collect(new Value(NumSummation.longToBytes(Long.MAX_VALUE)));
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.