Package org.eclipse.mat.parser.index
Class IndexWriter.LongIndexCollector
- java.lang.Object
-
- org.eclipse.mat.parser.index.IndexWriter.LongIndexCollector
-
- Enclosing class:
- IndexWriter
public static class IndexWriter.LongIndexCollector extends Object
A collector for a int to long mapping. Compressed with a maximum range of bits.
-
-
Constructor Summary
Constructors Constructor Description LongIndexCollector(int size, int mostSignificantBit)Create the collector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget(int index)long[]getNext(int index, int length)IteratorLongiterator()intreverse(long value)voidset(int index, long value)intsize()voidunload()IIndexReader.IOne2LongIndexwriteTo(File indexFile)
-
-
-
Method Detail
-
writeTo
public IIndexReader.IOne2LongIndex writeTo(File indexFile) throws IOException
- Throws:
IOException
-
set
public void set(int index, long value)
-
get
public long get(int index)
-
getNext
public long[] getNext(int index, int length)
-
reverse
public int reverse(long value)
-
unload
public void unload()
-
size
public int size()
-
iterator
public IteratorLong iterator()
-
-