public class HashMapCollectionExtractor extends HashedMapCollectionExtractorBase
IMapExtractor.EntryObject
Constructor and Description |
---|
HashMapCollectionExtractor(String sizeField,
String arrayField,
String keyField,
String valueField) |
Modifier and Type | Method and Description |
---|---|
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
|
IObjectArray |
getBackingArray(IObject coll) |
Integer |
getCapacity(IObject coll)
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 coll)
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
|
getCollisionRatio, getFillRatio, hasCollisionRatio, hasFillRatio
extractMapEntries, hasCapacity
public boolean hasExtractableContents()
ICollectionExtractor
public boolean hasExtractableArray()
ICollectionExtractor
public IObjectArray extractEntries(IObject coll) throws SnapshotException
ICollectionExtractor
SnapshotException
public int[] extractEntryIds(IObject coll) throws SnapshotException
ICollectionExtractor
SnapshotException
public Integer getCapacity(IObject coll) throws SnapshotException
ICollectionExtractor
getCapacity
in interface ICollectionExtractor
getCapacity
in class MapCollectionExtractorBase
SnapshotException
public boolean hasSize()
ICollectionExtractor
public Integer getSize(IObject coll) throws SnapshotException
ICollectionExtractor
SnapshotException
public Integer getNumberOfNotNullElements(IObject collection) throws SnapshotException
ICollectionExtractor
SnapshotException
public IObjectArray getBackingArray(IObject coll) throws SnapshotException
SnapshotException