public interface ICollectionExtractor
Modifier and Type | Method and Description |
---|---|
IObjectArray |
extractEntries(IObject collection)
Extracts the array containing the collection content
|
int[] |
extractEntryIds(IObject collection)
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
|
Double |
getFillRatio(IObject collection)
Calculate the fill ration of a collection
|
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 |
hasCapacity()
Check if the collection has capacity, e.g.
|
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 |
hasFillRatio()
Check if fill ratio for the collection can be calculated, i.e.
|
boolean |
hasSize()
Check if the size of the collection can be extracted
|
boolean hasSize()
Integer getSize(IObject collection) throws SnapshotException
collection
- SnapshotException
boolean hasCapacity()
Integer getCapacity(IObject collection) throws SnapshotException
collection
- SnapshotException
boolean hasFillRatio()
Double getFillRatio(IObject collection) throws SnapshotException
collection
- SnapshotException
boolean hasExtractableContents()
int[] extractEntryIds(IObject collection) throws SnapshotException
collection
- SnapshotException
boolean hasExtractableArray()
IObjectArray extractEntries(IObject collection) throws SnapshotException
collection
- SnapshotException
Integer getNumberOfNotNullElements(IObject collection) throws SnapshotException
collection
- SnapshotException