Package org.eclipse.mat.parser.index
Class IndexWriter.IntIndexCollectorUncompressed
- java.lang.Object
-
- org.eclipse.mat.parser.index.IndexWriter.IntIndexCollectorUncompressed
-
- Direct Known Subclasses:
IndexWriter.SizeIndexCollectorUncompressed
- Enclosing class:
- IndexWriter
public static class IndexWriter.IntIndexCollectorUncompressed extends Object
Collect a mapping of int to int.
-
-
Constructor Summary
Constructors Constructor Description IntIndexCollectorUncompressed(int size)Create an IntIndexCollectorUncompressed of the given size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget(int index)Retrieve an entry.voidset(int index, int value)Set a particular entry.IIndexReader.IOne2OneIndexwriteTo(File indexFile)Store the collector to a file.
-
-
-
Method Detail
-
set
public void set(int index, int value)Set a particular entry.- Parameters:
index- the index into the arrayvalue- the value
-
get
public int get(int index)
Retrieve an entry.- Parameters:
index- the index- Returns:
- the value
-
writeTo
public IIndexReader.IOne2OneIndex writeTo(File indexFile) throws IOException
Store the collector to a file.- Parameters:
indexFile- the file- Returns:
- an index which holds the same values as the collector
- Throws:
IOException- if a problem occurred with the write
-
-