public class WrapperCollectionExtractor extends Object implements ICollectionExtractor
| Constructor and Description |
|---|
WrapperCollectionExtractor(String field) |
WrapperCollectionExtractor(String field,
ICollectionExtractor extractor) |
| 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
|
Integer |
getCapacity(IObject coll)
Return the capacity of the collection, if applicable
|
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 |
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
|
public WrapperCollectionExtractor(String field)
public WrapperCollectionExtractor(String field, ICollectionExtractor extractor)
public boolean hasSize()
ICollectionExtractorhasSize in interface ICollectionExtractorpublic Integer getSize(IObject coll) throws SnapshotException
ICollectionExtractorgetSize in interface ICollectionExtractorSnapshotExceptionpublic boolean hasCapacity()
ICollectionExtractorhasCapacity in interface ICollectionExtractorpublic Integer getCapacity(IObject coll) throws SnapshotException
ICollectionExtractorgetCapacity in interface ICollectionExtractorSnapshotExceptionpublic boolean hasFillRatio()
ICollectionExtractorhasFillRatio in interface ICollectionExtractorpublic Double getFillRatio(IObject coll) throws SnapshotException
ICollectionExtractorgetFillRatio in interface ICollectionExtractorSnapshotExceptionpublic boolean hasExtractableContents()
ICollectionExtractorhasExtractableContents in interface ICollectionExtractorpublic int[] extractEntryIds(IObject coll) throws SnapshotException
ICollectionExtractorextractEntryIds in interface ICollectionExtractorSnapshotExceptionpublic boolean hasExtractableArray()
ICollectionExtractorhasExtractableArray in interface ICollectionExtractorpublic IObjectArray extractEntries(IObject coll) throws SnapshotException
ICollectionExtractorextractEntries in interface ICollectionExtractorSnapshotExceptionpublic Integer getNumberOfNotNullElements(IObject coll) throws SnapshotException
ICollectionExtractorgetNumberOfNotNullElements in interface ICollectionExtractorSnapshotException