public class IdentityHashMapCollectionExtractor extends FieldSizeArrayCollectionExtractor implements IMapExtractor
IMapExtractor.EntryObject| Constructor and Description |
|---|
IdentityHashMapCollectionExtractor(String sizeField,
String arrayField) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
extractEntryIds(IObject idMap)
Returns the object ids (int) for all objects which are contained in the
collection
|
Iterator<Map.Entry<IObject,IObject>> |
extractMapEntries(IObject coll)
Extracts the contents of a map (i.e.
|
Integer |
getCapacity(IObject collection)
Gets the capacity of the map.
|
Double |
getCollisionRatio(IObject coll)
Calculates the collision ratio in the collection
|
Double |
getFillRatio(IObject coll)
Calculate the fill ration of a collection
|
Integer |
getNumberOfNotNullElements(IObject coll)
Returns the number of non-null elements in the collection.
|
Integer |
getSize(IObject coll)
Extract the size of the collection
|
boolean |
hasCollisionRatio()
Can't calculate the collision ratio as we don't have the identityHashCode for the keys,
even if we did know the hash algorithm.
|
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
|
hasSizeextractEntries, hasCapacity, hasFillRatioequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractEntries, hasCapacity, hasFillRatio, hasSizepublic Integer getCapacity(IObject collection) throws SnapshotException
getCapacity in interface ICollectionExtractorgetCapacity in class FieldArrayCollectionExtractorSnapshotExceptionpublic boolean hasExtractableArray()
ICollectionExtractorhasExtractableArray in interface ICollectionExtractorhasExtractableArray in class FieldArrayCollectionExtractorpublic boolean hasExtractableContents()
ICollectionExtractorhasExtractableContents in interface ICollectionExtractorhasExtractableContents in class FieldArrayCollectionExtractorpublic Integer getSize(IObject coll) throws SnapshotException
ICollectionExtractorgetSize in interface ICollectionExtractorgetSize in class FieldSizeArrayCollectionExtractorSnapshotExceptionpublic int[] extractEntryIds(IObject idMap) throws SnapshotException
ICollectionExtractorextractEntryIds in interface ICollectionExtractorextractEntryIds in class FieldArrayCollectionExtractorSnapshotExceptionpublic boolean hasCollisionRatio()
hasCollisionRatio in interface IMapExtractorpublic Double getCollisionRatio(IObject coll) throws SnapshotException
IMapExtractorgetCollisionRatio in interface IMapExtractorSnapshotExceptionpublic Double getFillRatio(IObject coll) throws SnapshotException
ICollectionExtractorgetFillRatio in interface ICollectionExtractorgetFillRatio in class FieldArrayCollectionExtractorSnapshotExceptionpublic Integer getNumberOfNotNullElements(IObject coll) throws SnapshotException
ICollectionExtractorgetNumberOfNotNullElements in interface ICollectionExtractorgetNumberOfNotNullElements in class FieldArrayCollectionExtractorSnapshotExceptionpublic Iterator<Map.Entry<IObject,IObject>> extractMapEntries(IObject coll) throws SnapshotException
IMapExtractorextractMapEntries in interface IMapExtractorcoll - - the map to extract contents fromSnapshotException