Package org.eclipse.mat.parser.index
Class IndexWriter.LongIndexCollectorUncompressed
java.lang.Object
org.eclipse.mat.parser.index.IndexWriter.LongIndexCollectorUncompressed
- Enclosing class:
- IndexWriter
Build a int to long index.
-
Constructor Summary
ConstructorDescriptionLongIndexCollectorUncompressed
(int size) Construct a collector of the given size. -
Method Summary
-
Constructor Details
-
LongIndexCollectorUncompressed
public LongIndexCollectorUncompressed(int size) Construct a collector of the given size.- Parameters:
size
- the number of entries
-
-
Method Details
-
set
public void set(int index, long value) Add one entry.- Parameters:
index
- the int valuevalue
- the corresponding long
-
get
public long get(int index) Retrieve an entry.- Parameters:
index
- the int key- Returns:
- the long value
-
writeTo
Write the in-memory mapping to disk and return a reader.- Parameters:
indexFile
- the output file- Returns:
- a reader for the index
- Throws:
IOException
- if a problem occurs with the write
-