Class MATArrayBig
- java.lang.Object
-
- org.eclipse.mat.internal.collectionextract.FieldSizedCollectionExtractor
-
- org.eclipse.mat.internal.collectionextract.MATArrayBig
-
- All Implemented Interfaces:
ICollectionExtractor
public class MATArrayBig extends FieldSizedCollectionExtractor
-
-
Constructor Summary
Constructors Constructor Description MATArrayBig(java.lang.String sizeField, java.lang.String pagesField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getCapacity(IObject coll)
Return the capacity of the collection, if applicablejava.lang.Double
getFillRatio(IObject coll)
Calculate the fill ratio of a collectionboolean
hasCapacity()
Check if the collection has capacity, e.g.boolean
hasExtractableArray()
Return true if the collection array based and the array can be extracted from the heap dumpboolean
hasExtractableContents()
Check if the collection has extractable contentsboolean
hasFillRatio()
Check if fill ratio for the collection can be calculated, i.e.-
Methods inherited from class org.eclipse.mat.internal.collectionextract.FieldSizedCollectionExtractor
extractEntries, extractEntryIds, getNumberOfNotNullElements, getSize, hasSize
-
-
-
-
Method Detail
-
hasCapacity
public boolean hasCapacity()
Description copied from interface:ICollectionExtractor
Check if the collection has capacity, e.g. ArrayList- Specified by:
hasCapacity
in interfaceICollectionExtractor
- Overrides:
hasCapacity
in classFieldSizedCollectionExtractor
- Returns:
- true if
ICollectionExtractor.getCapacity(IObject)
could be called - See Also:
ICollectionExtractor.getCapacity(IObject)
-
getCapacity
public java.lang.Integer getCapacity(IObject coll) throws SnapshotException
Description copied from interface:ICollectionExtractor
Return the capacity of the collection, if applicable- Specified by:
getCapacity
in interfaceICollectionExtractor
- Overrides:
getCapacity
in classFieldSizedCollectionExtractor
- Parameters:
coll
- - the collection to find the capacity of- Returns:
- the capacity in bytes, or null if unavailable
- Throws:
SnapshotException
- if there is a problem retrieving data from the snapshot- See Also:
ICollectionExtractor.hasCapacity()
-
hasFillRatio
public boolean hasFillRatio()
Description copied from interface:ICollectionExtractor
Check if fill ratio for the collection can be calculated, i.e. if it has some predefined capacity and actual size.- Specified by:
hasFillRatio
in interfaceICollectionExtractor
- Overrides:
hasFillRatio
in classFieldSizedCollectionExtractor
- Returns:
- true if
ICollectionExtractor.getFillRatio(IObject)
could be called - See Also:
ICollectionExtractor.getFillRatio(IObject)
-
getFillRatio
public java.lang.Double getFillRatio(IObject coll) throws SnapshotException
Description copied from interface:ICollectionExtractor
Calculate the fill ratio of a collection- Specified by:
getFillRatio
in interfaceICollectionExtractor
- Overrides:
getFillRatio
in classFieldSizedCollectionExtractor
- Parameters:
coll
- - the collection to find the fill ratio of- Returns:
- the fill ratio, between 0.0 and 1.0, or null if unavailable
- Throws:
SnapshotException
- if there is a problem retrieving data from the snapshot- See Also:
ICollectionExtractor.hasFillRatio()
-
hasExtractableContents
public boolean hasExtractableContents()
Description copied from interface:ICollectionExtractor
Check if the collection has extractable contents- Specified by:
hasExtractableContents
in interfaceICollectionExtractor
- Overrides:
hasExtractableContents
in classFieldSizedCollectionExtractor
- Returns:
- true if
ICollectionExtractor.extractEntryIds(IObject)
could be called - See Also:
ICollectionExtractor.extractEntryIds(IObject)
-
hasExtractableArray
public boolean hasExtractableArray()
Description copied from interface:ICollectionExtractor
Return true if the collection array based and the array can be extracted from the heap dump- Specified by:
hasExtractableArray
in interfaceICollectionExtractor
- Overrides:
hasExtractableArray
in classFieldSizedCollectionExtractor
- Returns:
- true if
ICollectionExtractor.extractEntries(IObject)
could be called - See Also:
ICollectionExtractor.extractEntries(IObject)
-
-