public class SetFromCollectionExtractor extends Object implements IMapExtractor
IMapExtractor.EntryObject| Constructor and Description |
|---|
SetFromCollectionExtractor(ICollectionExtractor ex) |
SetFromCollectionExtractor(ICollectionExtractor ex,
double collisionRatio) |
| 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
|
Iterator<Map.Entry<IObject,IObject>> |
extractMapEntries(IObject collection)
Extracts the contents of a map (i.e.
|
Integer |
getCapacity(IObject collection)
Return the capacity of the collection, if applicable
|
Double |
getCollisionRatio(IObject coll)
Calculates the collision ratio in the collection
|
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 |
hasCollisionRatio()
Check if the extractor can calculate collision ratio
|
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 SetFromCollectionExtractor(ICollectionExtractor ex)
public SetFromCollectionExtractor(ICollectionExtractor ex, double collisionRatio)
public boolean hasCollisionRatio()
IMapExtractorhasCollisionRatio in interface IMapExtractorpublic Double getCollisionRatio(IObject coll) throws SnapshotException
IMapExtractorgetCollisionRatio in interface IMapExtractorSnapshotExceptionpublic Iterator<Map.Entry<IObject,IObject>> extractMapEntries(IObject collection) throws SnapshotException
IMapExtractorextractMapEntries in interface IMapExtractorcollection - - the map to extract contents fromSnapshotExceptionpublic boolean hasSize()
ICollectionExtractorhasSize in interface ICollectionExtractorpublic Integer getSize(IObject collection) throws SnapshotException
ICollectionExtractorgetSize in interface ICollectionExtractorSnapshotExceptionpublic boolean hasCapacity()
ICollectionExtractorhasCapacity in interface ICollectionExtractorpublic Integer getCapacity(IObject collection) throws SnapshotException
ICollectionExtractorgetCapacity in interface ICollectionExtractorSnapshotExceptionpublic boolean hasFillRatio()
ICollectionExtractorhasFillRatio in interface ICollectionExtractorpublic Double getFillRatio(IObject collection) throws SnapshotException
ICollectionExtractorgetFillRatio in interface ICollectionExtractorSnapshotExceptionpublic boolean hasExtractableContents()
ICollectionExtractorhasExtractableContents in interface ICollectionExtractorpublic int[] extractEntryIds(IObject collection) throws SnapshotException
ICollectionExtractorextractEntryIds in interface ICollectionExtractorSnapshotExceptionpublic boolean hasExtractableArray()
ICollectionExtractorhasExtractableArray in interface ICollectionExtractorpublic IObjectArray extractEntries(IObject collection) throws SnapshotException
ICollectionExtractorextractEntries in interface ICollectionExtractorSnapshotExceptionpublic Integer getNumberOfNotNullElements(IObject collection) throws SnapshotException
ICollectionExtractorgetNumberOfNotNullElements in interface ICollectionExtractorSnapshotException