Class WrapperMapExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
org.eclipse.mat.internal.collectionextract.WrapperMapExtractor
- All Implemented Interfaces:
ICollectionExtractor,IMapExtractor
- Direct Known Subclasses:
KeySetCollectionExtractor,WrapperFieldMapExtractor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
IMapExtractor.EntryObject -
Constructor Summary
ConstructorsConstructorDescriptionWrapperMapExtractor(String field) WrapperMapExtractor(String field, ICollectionExtractor extractor) -
Method Summary
Modifier and TypeMethodDescriptionextractMapEntries(IObject coll) Extracts the contents of a map (i.e.getCollisionRatio(IObject coll) Calculates the collision ratio in the collection.booleanCheck if the extractor can calculate collision ratioMethods inherited from class org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
extractEntries, extractEntryIds, getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSizeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.mat.inspections.collectionextract.ICollectionExtractor
extractEntries, extractEntryIds, getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize
-
Constructor Details
-
WrapperMapExtractor
-
WrapperMapExtractor
-
-
Method Details
-
hasCollisionRatio
public boolean hasCollisionRatio()Description copied from interface:IMapExtractorCheck if the extractor can calculate collision ratio- Specified by:
hasCollisionRatioin interfaceIMapExtractor- Returns:
- true if @
IMapExtractor.getCollisionRatio(IObject)could be called - See Also:
-
getCollisionRatio
Description copied from interface:IMapExtractorCalculates the collision ratio in the collection. Could be an estimate.- Specified by:
getCollisionRatioin interfaceIMapExtractor- Parameters:
coll- - the collection to calculate the collision ratio of- Returns:
- Double number of elements with colliding keys / size
- Throws:
SnapshotException- See Also:
-
extractMapEntries
Description copied from interface:IMapExtractorExtracts the contents of a map (i.e. an IObject representing a Map) and provides an Iterator over them- Specified by:
extractMapEntriesin interfaceIMapExtractor- Parameters:
coll- - the map to extract contents from- Returns:
- an Iterator over the entries. If the original Map had an Entry object, the content of the iterator would usually be EntryObject
-