org.eclipse.mat.internal.collectionextract
Class ConcurrentSkipListCollectionExtractor

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.HashMapCollectionExtractor
              extended by org.eclipse.mat.internal.collectionextract.ConcurrentSkipListCollectionExtractor
All Implemented Interfaces:
ICollectionExtractor, IMapExtractor

public class ConcurrentSkipListCollectionExtractor
extends HashMapCollectionExtractor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.mat.inspections.collectionextract.IMapExtractor
IMapExtractor.EntryObject
 
Constructor Summary
ConcurrentSkipListCollectionExtractor(String arrayField, String keyField, String valueField)
           
 
Method Summary
 Integer getCapacity(IObject coll)
          Return the capacity of the collection, if applicable
 Double getCollisionRatio(IObject coll)
          Calculates the collision ratio in the collection
 Double getFillRatio(IObject coll)
          Calculate the fill ration of a collection
 boolean hasCapacity()
          Check if the collection has capacity, e.g.
 boolean hasFillRatio()
          Check if fill ratio for the collection can be calculated, i.e.
 
Methods inherited from class org.eclipse.mat.internal.collectionextract.HashMapCollectionExtractor
extractEntries, extractEntryIds, getBackingArray, getNumberOfNotNullElements, hasExtractableArray, hasExtractableContents
 
Methods inherited from class org.eclipse.mat.internal.collectionextract.HashedMapCollectionExtractorBase
getSize, hasCollisionRatio, hasSize
 
Methods inherited from class org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
extractMapEntries
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentSkipListCollectionExtractor

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

hasCapacity

public boolean hasCapacity()
Description copied from interface: ICollectionExtractor
Check if the collection has capacity, e.g. ArrayList

Specified by:
hasCapacity in interface ICollectionExtractor
Overrides:
hasCapacity in class MapCollectionExtractorBase
Returns:

getCapacity

public Integer getCapacity(IObject coll)
                    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 HashMapCollectionExtractor
Returns:
Throws:
SnapshotException

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 interface ICollectionExtractor
Overrides:
hasFillRatio in class HashedMapCollectionExtractorBase
Returns:

getFillRatio

public Double getFillRatio(IObject coll)
                    throws SnapshotException
Description copied from interface: ICollectionExtractor
Calculate the fill ration of a collection

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

getCollisionRatio

public Double getCollisionRatio(IObject coll)
                         throws SnapshotException
Description copied from interface: IMapExtractor
Calculates the collision ratio in the collection

Specified by:
getCollisionRatio in interface IMapExtractor
Overrides:
getCollisionRatio in class HashedMapCollectionExtractorBase
Returns:
Double number of elements with colliding keys / size
Throws:
SnapshotException