Package org.eclipse.mat.parser.index
Class IndexWriter.IntArray1NUncompressedCollector
- java.lang.Object
-
- org.eclipse.mat.parser.index.IndexWriter.IntArray1NUncompressedCollector
-
- Enclosing class:
- IndexWriter
public static class IndexWriter.IntArray1NUncompressedCollector extends java.lang.Object
Build index for mapping int to int array.
-
-
Constructor Summary
Constructors Constructor Description IntArray1NUncompressedCollector(int size, java.io.File indexFile)
Constructor for index of given size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIndexReader.IOne2ManyIndex
flush()
Write the in memory version to disk and return the reader.java.io.File
getIndexFile()
Get the backing filevoid
log(int classId, int methodId)
Add entry for classid
-
-
-
Method Detail
-
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
public java.io.File getIndexFile()
Get the backing file- Returns:
- the backing file
-
flush
public IIndexReader.IOne2ManyIndex flush() throws java.io.IOException
Write the in memory version to disk and return the reader.- Returns:
- the new reader
- Throws:
java.io.IOException
- if a write error occurs
-
-