org.eclipse.mat.parser.index
Class IndexWriter.SizeIndexCollectorUncompressed

java.lang.Object
  extended by org.eclipse.mat.parser.index.IndexWriter.IntIndexCollectorUncompressed
      extended by org.eclipse.mat.parser.index.IndexWriter.SizeIndexCollectorUncompressed
Enclosing class:
IndexWriter

public static class IndexWriter.SizeIndexCollectorUncompressed
extends IndexWriter.IntIndexCollectorUncompressed

Store sizes of objects by compressing the size to a 32-bit int.

Since:
1.0

Constructor Summary
IndexWriter.SizeIndexCollectorUncompressed(int size)
           
 
Method Summary
static int compress(long y)
           
static long expand(int x)
           
 long getSize(int index)
           
 void set(int index, long value)
           
 IIndexReader.IOne2SizeIndex writeTo(java.io.File indexFile)
           
 
Methods inherited from class org.eclipse.mat.parser.index.IndexWriter.IntIndexCollectorUncompressed
get, set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexWriter.SizeIndexCollectorUncompressed

public IndexWriter.SizeIndexCollectorUncompressed(int size)
Method Detail

compress

public static int compress(long y)

expand

public static long expand(int x)

set

public void set(int index,
                long value)

getSize

public long getSize(int index)

writeTo

public IIndexReader.IOne2SizeIndex writeTo(java.io.File indexFile)
                                    throws java.io.IOException
Overrides:
writeTo in class IndexWriter.IntIndexCollectorUncompressed
Throws:
java.io.IOException