org.eclipse.mat.internal.collectionextract
Class ConcurrentSkipListCollectionExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.MapCollectionExtractorBase
org.eclipse.mat.internal.collectionextract.HashedMapCollectionExtractorBase
org.eclipse.mat.internal.collectionextract.HashMapCollectionExtractor
org.eclipse.mat.internal.collectionextract.ConcurrentSkipListCollectionExtractor
- All Implemented Interfaces:
- ICollectionExtractor, IMapExtractor
public class ConcurrentSkipListCollectionExtractor
- extends HashMapCollectionExtractor
ConcurrentSkipListCollectionExtractor
public ConcurrentSkipListCollectionExtractor(String arrayField,
String keyField,
String valueField)
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