Examples of reset()


Examples of org.apache.openjpa.instrumentation.jmx.DataCacheJMXInstrumentMBean.reset()

                 Set<String> classNames = stats.keySet();
                 assertNotNull(classNames);
                 assertTrue(classNames.contains(clsName));
               
                // Invoke the reset method and recollect stats
                mbean.reset();

                assertEquals(0, mbean.getHitCount());
                assertEquals(0, mbean.getReadCount());
                assertEquals(0, mbean.getWriteCount());
View Full Code Here

Examples of org.apache.pdfbox.cos.COSString.reset()

    public void setNamedDestination( String dest ) throws IOException
    {
        if( namedDestination instanceof COSString )
        {
            COSString string = ((COSString)namedDestination);
            string.reset();
            string.append( dest.getBytes() );
        }
        else if( dest == null )
        {
            namedDestination = null;
View Full Code Here

Examples of org.apache.phoenix.hbase.index.covered.filter.ApplyAndFilterDeletesFilter.reset()

  public void testDeletesAreNotReturned() {
    KeyValue kv = createKvForType(Type.Delete);
    ApplyAndFilterDeletesFilter filter = new ApplyAndFilterDeletesFilter(EMPTY_SET);
    assertEquals("Didn't skip point delete!", ReturnCode.SKIP, filter.filterKeyValue(kv));

    filter.reset();
    kv = createKvForType(Type.DeleteColumn);
    assertEquals("Didn't skip from column delete!", ReturnCode.SKIP, filter.filterKeyValue(kv));

    filter.reset();
    kv = createKvForType(Type.DeleteFamily);
View Full Code Here

Examples of org.apache.phoenix.hbase.index.covered.filter.FamilyOnlyFilter.reset()

    code = filter.filterKeyValue(accept);
    assertEquals("Should have skipped a 'matching' family if it arrives out of order",
      ReturnCode.SKIP, code);

    // reset the filter and we should accept it again
    filter.reset();
    code = filter.filterKeyValue(accept);
    assertEquals("Didn't pass matching family after reset", ReturnCode.INCLUDE, code);
  }
}
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.reset()

            int removedMROp = jcc.updateMROpPlan(new LinkedList<Job>());
           
            numMRJobsCompl += removedMROp;
        }
               
        jcc.reset();
    }

    private class OutputAttacher extends PhyPlanVisitor {
        private Map<String, DataBag> outputBuffer;
        OutputAttacher(PhysicalPlan plan, Map<String, DataBag> output) {
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.reset()

                int errCode = 2043;
                String msg = "Unexpected error during execution.";
                throw new ExecException(msg, errCode, PigException.BUG, e);
            }
        } finally {
            launcher.reset();
        }

    }

    public List<ExecJob> submit(PhysicalPlan plan,
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer.reset()

        mainWindow.setMaximized(true);
        mainWindow.open(display);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
        wtkxSerializer.reset();

        translucentFrame = (Frame)wtkxSerializer.readObject(this, "translucent.wtkx");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);
View Full Code Here

Examples of org.apache.poi.hslf.record.TextSpecInfoAtom.reset()

         */
        if(_records != null) for (int i = 0; i < _records.length; i++) {
            if(_records[i] instanceof TextSpecInfoAtom){
                TextSpecInfoAtom specAtom = (TextSpecInfoAtom)_records[i];
                if((s.length() + 1) != specAtom.getCharactersCovered()){
                    specAtom.reset(s.length() + 1);
                }
            }
        }
  }

View Full Code Here

Examples of org.apache.poi.util.DummyPOILogger.reset()

            {
                data[ j ] = ( byte ) j;
            }
            RawDataBlock block = null;
           
            logger.reset();
            assertEquals(0, logger.logged.size());
           
            // Have it created
            block = new RawDataBlock(new ByteArrayInputStream(data));
            assertNotNull(block);
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.messaging.SectionEncoder.reset()

        Transfer xfr = new Transfer();

        if(sections != null && !sections.isEmpty())
        {
            SectionEncoder encoder = _session.getSectionEncoder();
            encoder.reset();

            int sectionNumber = 0;
            for(Section section : sections)
            {
                encoder.encodeObject(section);
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.