Package org.apache.kato.common

Examples of org.apache.kato.common.BitMaskMappingArray


    recordsOffset = mainProvider.getCurrentLocation();
    long maxOffsetLength = mainProvider.getDataLength() - recordsOffset;
    SubsetDataProvider subset = new SubsetDataProvider(mainProvider,
        maxOffsetLength);
    array = new BitMaskMappingArray(1000, 25, new HPROFRecordProvider(
        subset));

  }
View Full Code Here


    public HeapDumpHProfRecord(short tag, IDataProvider dataProvider)
        throws IOException {
      super(tag, null);
      size = dataProvider.getDataLength();
      myP = dataProvider;
      subRecordArray = new BitMaskMappingArray(1000, 25,
          new HProfDumpRecordArrayProvider(dataProvider));
    }
View Full Code Here

public class TestBitMaskMappingArray extends TestCase{

 
  public void testCreation() {
   
    BitMaskMappingArray array=new  BitMaskMappingArray(8,2,null);
  }
View Full Code Here

   
    BitMaskMappingArray array=new  BitMaskMappingArray(8,2,null);
  }
 
  public void testSingleSpanSeek() {
    BitMaskMappingArray array=new  BitMaskMappingArray(8,2,new MockArrayEntryProvider());
   
    for(int i=0;i<8;i++) {
      Long l=(Long) array.get(i);
      assertEquals(i,l.intValue());
    }
  }
View Full Code Here

      assertEquals(i,l.intValue());
    }
  }
 
  public void testDoubleSpanSeek() {
    BitMaskMappingArray array=new  BitMaskMappingArray(8,2,new MockArrayEntryProvider());
   
    for(int i=9;i<24;i++) {
      Long l=(Long) array.get(i);
      assertEquals(i,l.intValue());
    }
  }
View Full Code Here

      assertEquals(i,l.intValue());
    }
  }
 
  public void testLargeSpanSeek() {
    BitMaskMappingArray array=new  BitMaskMappingArray(8,2,new MockArrayEntryProvider());
   
    Long l=(Long) array.get(100);
    assertEquals(100,l.intValue());
   
    l=(Long) array.get(1000);
    assertEquals(1000,l.intValue());
   
   
   
  }
View Full Code Here

TOP

Related Classes of org.apache.kato.common.BitMaskMappingArray

Copyright © 2018 www.massapicom. 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.