Examples of reset()


Examples of org.apache.uima.aae.monitor.statistics.LongNumericStatistic.reset()

  public synchronized void resetCountingStatistic(String aComponent, String aStatisticName) {
    LongNumericStatistic countStat = getLongNumericStatistic(aComponent, aStatisticName);
    if (countStat != null) {
      synchronized (countStat) {
        // System.out.println("Resetting Statistic:"+aStatisticName+" For Component:"+aComponent);
        countStat.reset();
      }
    }
  }

  public Statistic getStatistic(String aComponentName, String aStatisticName) {
View Full Code Here

Examples of org.apache.uima.cas.CAS.reset()

    // compare
    assertEquals(cas.getAnnotationIndex().size(), v1cas.getAnnotationIndex().size());

    // now a v1.x version of a multiple Sofa CAS
    v1cas.reset();
    serCasStream = new FileInputStream(JUnitExtension.getFile("ExampleCas/v1MultiSofaCas.xml"));
    deser = new XCASDeserializer(v1cas.getTypeSystem());
    deserHandler = deser.getXCASHandler(v1cas);
    fact = SAXParserFactory.newInstance();
    parser = fact.newSAXParser();
View Full Code Here

Examples of org.apache.uima.jcas.JCas.reset()

    JCas jcas = JCasFactory.createJCasFromPath("src/main/resources/org/apache/ctakes/ytex/types/TypeSystem.xml");
    while(colReader.hasNext()) {
      count++;
      colReader.getNext(jcas.getCas());
      Assert.assertTrue("document should have a dockey", jcas.getAnnotationIndex(DocKey.type).iterator().hasNext());
      jcas.reset();
    }
    Assert.assertTrue("should have read some documents", count > 0);
  }

View Full Code Here

Examples of org.apache.uima.lucas.indexer.analysis.TokenStreamConcatenator.reset()

    nextToken = concatenator.next(nextToken);
    assertEquals("token5", new String(nextToken.termBuffer(), 0, nextToken.termLength()));
    nextToken = concatenator.next(nextToken);
    assertEquals("token6", new String(nextToken.termBuffer(), 0, nextToken.termLength()));
   
    concatenator.reset();
    nextToken = concatenator.next(nextToken);
    assertEquals("token1", new String(nextToken.termBuffer(), 0, nextToken.termLength()));
    nextToken = concatenator.next(nextToken);
    assertEquals("token2", new String(nextToken.termBuffer(), 0, nextToken.termLength()));
    nextToken = concatenator.next(nextToken);
View Full Code Here

Examples of org.apache.vxquery.datamodel.builders.sequence.SequenceBuilder.reset()

                        dOutCount.writeLong(count);
                        tvpCount.set(abvsCount);

                        // Save intermediate result.
                        abvsSeq.reset();
                        sb.reset(abvsSeq);
                        sb.addItem(tvpCount);
                        sb.addItem(tvpSum);
                        sb.finish();
                        result.set(abvsSeq);
                    } catch (Exception e) {
View Full Code Here

Examples of org.apache.vxquery.runtime.functions.strings.ICharacterIterator.reset()

    }

    @Override
    public void convertString(UTF8StringPointable stringp, DataOutput dOut) throws SystemException, IOException {
        ICharacterIterator charIterator = new UTF8StringCharacterIterator(stringp);
        charIterator.reset();
        long value = 0;
        int c = 0;
        boolean negative = false;
        long limit = -Short.MAX_VALUE;
View Full Code Here

Examples of org.apache.vxquery.runtime.functions.strings.LowerCaseCharacterIterator.reset()

    @Override
    public void convertString(UTF8StringPointable stringp, DataOutput dOut) throws SystemException, IOException {
        byte result = 2;
        ICharacterIterator charIterator = new LowerCaseCharacterIterator(new UTF8StringCharacterIterator(stringp));
        charIterator.reset();

        int c1 = charIterator.next();
        int c2 = charIterator.next();
        int c3 = charIterator.next();
        int c4 = charIterator.next();
View Full Code Here

Examples of org.apache.vxquery.runtime.functions.strings.UTF8StringCharacterIterator.reset()

    }

    @Override
    public void convertString(UTF8StringPointable stringp, DataOutput dOut) throws SystemException, IOException {
        ICharacterIterator charIterator = new UTF8StringCharacterIterator(stringp);
        charIterator.reset();
        long value = 0;
        int c = 0;
        boolean negative = false;
        long limit = -Short.MAX_VALUE;
View Full Code Here

Examples of org.apache.whirr.service.DryRunModule.DryRun.reset()

    ClusterSpec clusterSpec = ClusterSpec.withTemporaryKeys(config);
    ClusterController controller = new ClusterController();

    DryRun dryRun = getDryRunInControllerForCluster(controller, clusterSpec);
    dryRun.reset();
   
    controller.launchCluster(clusterSpec);
    controller.destroyCluster(clusterSpec);

    ListMultimap<NodeMetadata, Statement> perNodeExecutions = dryRun.getExecutions();
View Full Code Here

Examples of org.apache.wicket.Response.reset()

   * @see org.apache.wicket.IRequestTarget#respond(org.apache.wicket.RequestCycle)
   */
  public void respond(RequestCycle requestCycle)
  {
    Response response = requestCycle.getResponse();
    response.reset();
    if (redirectUrl.startsWith("/"))
    {
      // context-absolute url

      RequestContext rc = RequestContext.get();
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.