Class HashedMapCollectionExtractorBase
java.lang.Object
org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
org.eclipse.mat.internal.collectionextract.HashedMapCollectionExtractorBase
- All Implemented Interfaces:
ICollectionExtractor
,IMapExtractor
- Direct Known Subclasses:
ConcurrentHashMapCollectionExtractor
,ConcurrentSkipListCollectionExtractor
,HashMapCollectionExtractor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
IMapExtractor.EntryObject
-
Constructor Summary
ConstructorDescriptionHashedMapCollectionExtractorBase
(String arrayField, String keyField, String valueField) -
Method Summary
Modifier and TypeMethodDescriptiongetCollisionRatio
(IObject coll) Calculates the collision ratio in the collection.getFillRatio
(IObject coll) Calculate the fill ratio of a collectionboolean
Check if the extractor can calculate collision ratioboolean
Check if fill ratio for the collection can be calculated, i.e.Methods inherited from class org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
extractMapEntries, getCapacity, hasCapacity
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.mat.inspections.collectionextract.ICollectionExtractor
extractEntries, extractEntryIds, getNumberOfNotNullElements, getSize, hasExtractableArray, hasExtractableContents, hasSize
-
Constructor Details
-
HashedMapCollectionExtractorBase
-
-
Method Details
-
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.- Returns:
- true if
ICollectionExtractor.getFillRatio(IObject)
could be called - See Also:
-
getFillRatio
Description copied from interface:ICollectionExtractor
Calculate the fill ratio of a collection- 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:
-
hasCollisionRatio
public boolean hasCollisionRatio()Description copied from interface:IMapExtractor
Check if the extractor can calculate collision ratio- Returns:
- true if @
IMapExtractor.getCollisionRatio(IObject)
could be called - See Also:
-
getCollisionRatio
Description copied from interface:IMapExtractor
Calculates the collision ratio in the collection. Could be an estimate.- Parameters:
coll
- - the collection to calculate the collision ratio of- Returns:
- Double number of elements with colliding keys / size
- Throws:
SnapshotException
- See Also:
-