org.eclipse.mat.internal.collectionextract
Class ConcurrentHashMapCollectionExtractor

java.lang.Object
  extended by org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
      extended by org.eclipse.mat.internal.collectionextract.HashedMapCollectionExtractorBase
          extended by org.eclipse.mat.internal.collectionextract.ConcurrentHashMapCollectionExtractor
All Implemented Interfaces:
ICollectionExtractor, IMapExtractor

public class ConcurrentHashMapCollectionExtractor
extends HashedMapCollectionExtractorBase


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
IMapExtractor.EntryObject
 
Constructor Summary
ConcurrentHashMapCollectionExtractor(String arrayField, String keyField, String valueField)
           
 
Method Summary
 IObjectArray extractEntries(IObject coll)
          Extracts the array containing the collection content
 int[] extractEntryIds(IObject coll)
          Returns the object ids (int) for all objects which are contained in the collection
 Integer getCapacity(IObject collection)
          Return the capacity of the collection, if applicable
 Integer getNumberOfNotNullElements(IObject collection)
          Returns the number of non-null elements in the collection.
 Integer getSize(IObject collection)
          Extract the size of the collection
 boolean hasExtractableArray()
          Return true if the collection array based and the array can be extracted from the heap dump
 boolean hasExtractableContents()
          Check if the collection has extractable contents
 boolean hasSize()
          Check if the size of the collection can be extracted
 
Methods inherited from class org.eclipse.mat.internal.collectionextract.HashedMapCollectionExtractorBase
getCollisionRatio, getFillRatio, hasCollisionRatio, hasFillRatio
 
Methods inherited from class org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
extractMapEntries, hasCapacity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentHashMapCollectionExtractor

public ConcurrentHashMapCollectionExtractor(String arrayField,
                                            String keyField,
                                            String valueField)
Method Detail

hasSize

public boolean hasSize()
Description copied from interface: ICollectionExtractor
Check if the size of the collection can be extracted

Specified by:
hasSize in interface ICollectionExtractor
Overrides:
hasSize in class HashedMapCollectionExtractorBase
Returns:

getSize

public Integer getSize(IObject collection)
                throws SnapshotException
Description copied from interface: ICollectionExtractor
Extract the size of the collection

Specified by:
getSize in interface ICollectionExtractor
Overrides:
getSize in class HashedMapCollectionExtractorBase
Returns:
Throws:
SnapshotException

getCapacity

public Integer getCapacity(IObject collection)
                    throws SnapshotException
Description copied from interface: ICollectionExtractor
Return the capacity of the collection, if applicable

Specified by:
getCapacity in interface ICollectionExtractor
Overrides:
getCapacity in class MapCollectionExtractorBase
Returns:
Throws:
SnapshotException

hasExtractableContents

public boolean hasExtractableContents()
Description copied from interface: ICollectionExtractor
Check if the collection has extractable contents

Returns:

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

Returns:

extractEntries

public IObjectArray extractEntries(IObject coll)
                            throws SnapshotException
Description copied from interface: ICollectionExtractor
Extracts the array containing the collection content

Returns:
Throws:
SnapshotException

extractEntryIds

public int[] extractEntryIds(IObject coll)
                      throws SnapshotException
Description copied from interface: ICollectionExtractor
Returns the object ids (int) for all objects which are contained in the collection

Returns:
Throws:
SnapshotException

getNumberOfNotNullElements

public Integer getNumberOfNotNullElements(IObject collection)
                                   throws SnapshotException
Description copied from interface: ICollectionExtractor
Returns the number of non-null elements in the collection. Requires hasExtractableContents or hasExtractableArray

Returns:
Throws:
SnapshotException