Package org.eclipse.mat.parser.index
Class IndexManager
java.lang.Object
org.eclipse.mat.parser.index.IndexManager
Handles the indexes into the snapshot.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionThe index from object ID to its size, for arrays and variable sized objectsThe dominator tree index from an object to the object which dominates it.The dominator tree index from an object to the objects it dominatesThe cache for the retained size from the object IDThe index from object ID to its addressThe index for objects which refer to each objectThe index from object ID to the type as a class IDIndex from object ID to its retained sizeThe index for objects showing what they refer to -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiona2size()
The index from array object ID and variable sized objects to the size in bytes.The index from a class to its instancesvoid
close()
Closes all the index reader filesvoid
delete()
Delete all the index filesThe index reader from each object to the objects it dominatesThe index reader for each object to the object which dominates itgetReader
(IndexManager.Index index) Get the reader corresponding to the indexinbound()
The inbounds index for each object to its inbound references.void
Populate all the index readersThe index from object ID to the object addresso2class()
The index for each object to class.The index reader for each object to its retained sizeoutbound()
The inbounds index for each object to its outbound references.void
setReader
(IndexManager.Index index, IIndexReader reader) Add index reader corresponding to the index to the index manager
-
Field Details
-
inbound
The index for objects which refer to each object -
outbound
The index for objects showing what they refer to -
o2c
The index from object ID to the type as a class ID -
idx
The index from object ID to its address -
a2s
The index from object ID to its size, for arrays and variable sized objects -
domOut
The dominator tree index from an object to the objects it dominates -
o2ret
Index from object ID to its retained size -
domIn
The dominator tree index from an object to the object which dominates it. -
i2sv2
The cache for the retained size from the object ID- No Reference:
- This field is not intended to be referenced by clients.
-
-
Constructor Details
-
IndexManager
public IndexManager()
-
-
Method Details
-
setReader
Add index reader corresponding to the index to the index manager- Parameters:
index
- the index to setreader
- the source for the index
-
getReader
Get the reader corresponding to the index- Parameters:
index
- the index- Returns:
- the reader
-
init
Populate all the index readers- Parameters:
prefix
- the prefix of the snapshot- Throws:
IOException
- if a problem occurred reading the indices
-
inbound
The inbounds index for each object to its inbound references.- Returns:
- the index reader
-
outbound
The inbounds index for each object to its outbound references.- Returns:
- the index reader
-
o2class
The index for each object to class.- Returns:
- the index reader
-
c2objects
The index from a class to its instances- Returns:
- the index reader
-
o2address
The index from object ID to the object address- Returns:
- the index reader for the object address
-
a2size
The index from array object ID and variable sized objects to the size in bytes.- Since:
- 1.0
-
dominated
The index reader from each object to the objects it dominates- Returns:
- the index reader
-
o2retained
The index reader for each object to its retained size- Returns:
- the index reader
-
dominator
The index reader for each object to the object which dominates it- Returns:
- the index reader
-
close
Closes all the index reader files- Throws:
IOException
- if there is a problem closing the files
-
delete
Delete all the index files- Throws:
IOException
- if there is a problem deleting the files
-