Package org.eclipse.mat.parser.index
Class IndexWriter.IntArray1NUncompressedCollector
java.lang.Object
org.eclipse.mat.parser.index.IndexWriter.IntArray1NUncompressedCollector
- Enclosing class:
- IndexWriter
Build index for mapping int to int array.
-
Constructor Summary
ConstructorDescriptionIntArray1NUncompressedCollector
(int size, File indexFile) Constructor for index of given size -
Method Summary
-
Constructor Details
-
IntArray1NUncompressedCollector
Constructor for index of given size- Parameters:
size
- number of entries- Throws:
IOException
- if a problem occurs with the write
-
-
Method Details
-
log
public void log(int classId, int methodId) Add entry for classid- Parameters:
classId
- the class idmethodId
- the method id to be added to the array
-
getIndexFile
Get the backing file- Returns:
- the backing file
-
flush
Write the in memory version to disk and return the reader.- Returns:
- the new reader
- Throws:
IOException
- if a write error occurs
-