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.IntegergetCapacity(IObject coll)Return the capacity of the collection, if applicablejava.lang.DoublegetFillRatio(IObject coll)Calculate the fill ratio of a collectionbooleanhasCapacity()Check if the collection has capacity, e.g.booleanhasExtractableArray()Return true if the collection array based and the array can be extracted from the heap dumpbooleanhasExtractableContents()Check if the collection has extractable contentsbooleanhasFillRatio()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:ICollectionExtractorCheck if the collection has capacity, e.g. ArrayList- Specified by:
hasCapacityin interfaceICollectionExtractor- Overrides:
hasCapacityin 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:ICollectionExtractorReturn the capacity of the collection, if applicable- Specified by:
getCapacityin interfaceICollectionExtractor- Overrides:
getCapacityin 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:ICollectionExtractorCheck if fill ratio for the collection can be calculated, i.e. if it has some predefined capacity and actual size.- Specified by:
hasFillRatioin interfaceICollectionExtractor- Overrides:
hasFillRatioin 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:ICollectionExtractorCalculate the fill ratio of a collection- Specified by:
getFillRatioin interfaceICollectionExtractor- Overrides:
getFillRatioin 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:ICollectionExtractorCheck if the collection has extractable contents- Specified by:
hasExtractableContentsin interfaceICollectionExtractor- Overrides:
hasExtractableContentsin classFieldSizedCollectionExtractor- Returns:
- true if
ICollectionExtractor.extractEntryIds(IObject)could be called - See Also:
ICollectionExtractor.extractEntryIds(IObject)
-
hasExtractableArray
public boolean hasExtractableArray()
Description copied from interface:ICollectionExtractorReturn true if the collection array based and the array can be extracted from the heap dump- Specified by:
hasExtractableArrayin interfaceICollectionExtractor- Overrides:
hasExtractableArrayin classFieldSizedCollectionExtractor- Returns:
- true if
ICollectionExtractor.extractEntries(IObject)could be called - See Also:
ICollectionExtractor.extractEntries(IObject)
-
-