Class WrapperFieldMapExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
org.eclipse.mat.internal.collectionextract.WrapperMapExtractor
org.eclipse.mat.internal.collectionextract.WrapperFieldMapExtractor
- All Implemented Interfaces:
ICollectionExtractor
,IMapExtractor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
IMapExtractor.EntryObject
-
Constructor Summary
ConstructorDescriptionWrapperFieldMapExtractor
(String field, String keyfield, String valuefield) WrapperFieldMapExtractor
(String field, String keyfield, String valuefield, ICollectionExtractor extractor) -
Method Summary
Modifier and TypeMethodDescriptionint[]
extractEntryIds
(IObject coll) Returns the object ids (int) for all objects which are contained in the collectionextractMapEntries
(IObject coll) Extracts the contents of a map (i.e.Methods inherited from class org.eclipse.mat.internal.collectionextract.WrapperMapExtractor
getCollisionRatio, hasCollisionRatio
Methods inherited from class org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
extractEntries, getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize
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, getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize
-
Constructor Details
-
WrapperFieldMapExtractor
-
WrapperFieldMapExtractor
public WrapperFieldMapExtractor(String field, String keyfield, String valuefield, ICollectionExtractor extractor)
-
-
Method Details
-
extractEntryIds
Description copied from interface:ICollectionExtractor
Returns the object ids (int) for all objects which are contained in the collection- Specified by:
extractEntryIds
in interfaceICollectionExtractor
- Overrides:
extractEntryIds
in classWrapperCollectionExtractor
- Parameters:
coll
- - the collection to find the objects it holds- Returns:
- an array of ints which are the object ids.
- Throws:
SnapshotException
- if there is a problem retrieving data from the snapshot- See Also:
-
extractMapEntries
Description copied from interface:IMapExtractor
Extracts the contents of a map (i.e. an IObject representing a Map) and provides an Iterator over them- Specified by:
extractMapEntries
in interfaceIMapExtractor
- Overrides:
extractMapEntries
in classWrapperMapExtractor
- 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
-