Package org.eclipse.mat.parser.index
Enum IndexManager.Index
- java.lang.Object
-
- java.lang.Enum<IndexManager.Index>
-
- org.eclipse.mat.parser.index.IndexManager.Index
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IndexManager.Index>
- Enclosing class:
- IndexManager
public static enum IndexManager.Index extends java.lang.Enum<IndexManager.Index>
The different index types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A2SIZE
Array to size: array (or non-default sized object) id to size (as an encoded int)DOMINATED
Dominated: object id to N dominated object idsDOMINATOR
Dominator of: object id to the id of its dominatorI2RETAINED
Retained size cache.IDENTIFIER
Index to address: object id to address (as a long)INBOUND
Inbounds: object id to N outbound object idsO2CLASS
Object to class: object id to 1 class idO2RETAINED
Object to retained size: object in dominator tree to retained size (as a long)OUTBOUND
Outbounds: object id to N inbound object ids
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
filename
The file name for the index reader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getFile(java.lang.String prefix)
Create aFile
descriptor based on the prefix and filenamestatic IndexManager.Index
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IndexManager.Index[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INBOUND
public static final IndexManager.Index INBOUND
Inbounds: object id to N outbound object ids
-
OUTBOUND
public static final IndexManager.Index OUTBOUND
Outbounds: object id to N inbound object ids
-
O2CLASS
public static final IndexManager.Index O2CLASS
Object to class: object id to 1 class id
-
IDENTIFIER
public static final IndexManager.Index IDENTIFIER
Index to address: object id to address (as a long)
-
A2SIZE
public static final IndexManager.Index A2SIZE
Array to size: array (or non-default sized object) id to size (as an encoded int)
-
DOMINATED
public static final IndexManager.Index DOMINATED
Dominated: object id to N dominated object ids
-
O2RETAINED
public static final IndexManager.Index O2RETAINED
Object to retained size: object in dominator tree to retained size (as a long)
-
DOMINATOR
public static final IndexManager.Index DOMINATOR
Dominator of: object id to the id of its dominator
-
I2RETAINED
public static final IndexManager.Index I2RETAINED
Retained size cache. Retained size cache for a class: class+all instances. Retained size cache for a class loader: loader+all classes+all instances.- Since:
- 1.2
-
-
Method Detail
-
values
public static IndexManager.Index[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IndexManager.Index c : IndexManager.Index.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IndexManager.Index valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFile
public java.io.File getFile(java.lang.String prefix)
Create aFile
descriptor based on the prefix and filename- Parameters:
prefix
- the prefix based on the snapshot name- Returns:
- the file to use
-
-