Class MATArrayBig
java.lang.Object
org.eclipse.mat.internal.collectionextract.FieldSizedCollectionExtractor
org.eclipse.mat.internal.collectionextract.MATArrayBig
- All Implemented Interfaces:
ICollectionExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCapacity(IObject coll) Return the capacity of the collection, if applicablegetFillRatio(IObject coll) Calculate the fill ratio of a collectionbooleanCheck if the collection has capacity, e.g.booleanReturn true if the collection array based and the array can be extracted from the heap dumpbooleanCheck if the collection has extractable contentsbooleanCheck 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
-
Constructor Details
-
MATArrayBig
-
-
Method Details
-
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:
-
getCapacity
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:
-
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:
-
getFillRatio
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:
-
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:
-
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:
-