Package org.eclipse.mat.parser.index
Interface IIndexReader
-
- All Known Subinterfaces:
IIndexReader.IOne2LongIndex,IIndexReader.IOne2ManyIndex,IIndexReader.IOne2ManyObjectsIndex,IIndexReader.IOne2OneIndex,IIndexReader.IOne2SizeIndex
- All Known Implementing Classes:
IndexReader.IntIndex1NSortedReader,IndexReader.IntIndexReader,IndexReader.LongIndex1NReader,IndexReader.LongIndexReader,IndexReader.SizeIndexReader,IndexWriter.Identifier,IndexWriter.IntIndexCollector,RetainedSizeCache
public interface IIndexReaderInterfaces for reading various indexes into the snapshot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIIndexReader.IOne2LongIndexIndex from object id to a long.static interfaceIIndexReader.IOne2ManyIndexIndex from object id to several object ids.static interfaceIIndexReader.IOne2ManyObjectsIndexIndex from object id to several object ids.static interfaceIIndexReader.IOne2OneIndexIndex from object id to another int.static interfaceIIndexReader.IOne2SizeIndexIndex from object id to size, stored compressed as an int.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the backing file.voiddelete()Delete the backing file.intsize()Size of the indexvoidunload()Clear the caches.
-
-
-
Method Detail
-
size
int size()
Size of the index- Returns:
- number of entries
-
unload
void unload() throws IOExceptionClear 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.- Throws:
IOException
-
close
void close() throws IOExceptionClose the backing file.- Throws:
IOException
-
delete
void delete()
Delete the backing file.
-
-