Class IndexReader.LongIndexReader

java.lang.Object
org.eclipse.mat.parser.index.IndexReader.LongIndexReader
All Implemented Interfaces:
IIndexReader, IIndexReader.IOne2LongIndex
Enclosing class:
IndexReader

public static class IndexReader.LongIndexReader extends Object implements IIndexReader.IOne2LongIndex
Creates a int to long index reader Disk file structure:
 Page 0: ArrayLongCompressed
 Page 1: ArrayLongCompressed
 ...
 Page n: ArrayLongCompressed
 page 0 start in file (8)
 page 1 start in file (8)
 ...
 page n start in file (8)
 page n+1 start in file (8) (i.e. location of 'page 0 start in file' field)
 page size (4)
 total size (4)
 
  • Constructor Details

  • Method Details

    • close

      public void close()
      Description copied from interface: IIndexReader
      Close the backing file.
      Specified by:
      close in interface IIndexReader
    • reverse

      public int reverse(long value)
      Description copied from interface: IIndexReader.IOne2LongIndex
      Find the int corresponding to the long in the index value. The reverse of IIndexReader.IOne2LongIndex.get(int)
      Specified by:
      reverse in interface IIndexReader.IOne2LongIndex
      Parameters:
      value - the value to look up
      Returns:
      the correspond int key in the index
    • unload

      public void unload()
      Description copied from interface: IIndexReader
      Clear the caches. Used when the indexes are not current in use and the memory needs to be reclaimed such as when building the dominator tree.
      Specified by:
      unload in interface IIndexReader
    • delete

      public void delete()
      Description copied from interface: IIndexReader
      Delete the backing file.
      Specified by:
      delete in interface IIndexReader
    • get

      public long get(int index)
    • getNext

      public long[] getNext(int index, int length)
    • set

      public void set(int index, long value)
    • size

      public int size()
    • iterator

      public IteratorLong iterator()