org.eclipse.mat.parser.index
Class IndexReader.IntIndex1NSortedReader
java.lang.Object
org.eclipse.mat.parser.index.IndexReader.IntIndex1NSortedReader
- All Implemented Interfaces:
- IIndexReader, IIndexReader.IOne2ManyIndex
- Enclosing class:
- IndexReader
public static class IndexReader.IntIndex1NSortedReader
- extends java.lang.Object
Method Summary |
void |
close()
Close the backing file. |
void |
delete()
Delete the backing file. |
int[] |
get(int index)
|
int |
size()
Size of the index |
void |
unload()
Clear the caches. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexReader.IntIndex1NSortedReader
public IndexReader.IntIndex1NSortedReader(java.io.File indexFile)
throws java.io.IOException
- Throws:
java.io.IOException
IndexReader.IntIndex1NSortedReader
public IndexReader.IntIndex1NSortedReader(java.io.File indexFile,
IIndexReader.IOne2OneIndex header,
IIndexReader.IOne2OneIndex body)
throws java.io.IOException
- Throws:
java.io.IOException
get
public int[] get(int index)
- Specified by:
get
in interface IIndexReader.IOne2ManyIndex
close
public void close()
- Description copied from interface:
IIndexReader
- Close the backing file.
- Specified by:
close
in interface IIndexReader
unload
public void unload()
throws java.io.IOException
- Description copied from interface:
IIndexReader
- Clear the caches. Used when the indexes are not current in use
and the memory needs to be reclaimed such as when building the dominator tree.
- Specified by:
unload
in interface IIndexReader
- Throws:
java.io.IOException
size
public int size()
- Description copied from interface:
IIndexReader
- Size of the index
- Specified by:
size
in interface IIndexReader
- Returns:
- number of entries
delete
public void delete()
- Description copied from interface:
IIndexReader
- Delete the backing file.
- Specified by:
delete
in interface IIndexReader