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