public class RegularEnumSetExtractor extends FieldSizeArrayCollectionExtractor implements IMapExtractor
IMapExtractor.EntryObject
Constructor and Description |
---|
RegularEnumSetExtractor(String sizeField,
String arrayField)
For java.util.RegularEnumSet
|
Modifier and Type | Method and Description |
---|---|
int[] |
extractEntryIds(IObject coll)
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.
|
Double |
getCollisionRatio(IObject collection)
Calculates the collision ratio in the collection
|
Integer |
getSize(IObject coll)
Extract the size of the collection
|
boolean |
hasCollisionRatio()
Check if the extractor can calculate collision ratio
|
hasSize
extractEntries, getCapacity, getFillRatio, getNumberOfNotNullElements, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
extractEntries, getCapacity, getFillRatio, getNumberOfNotNullElements, hasCapacity, hasExtractableArray, hasExtractableContents, hasFillRatio, hasSize
public Integer getSize(IObject coll) throws SnapshotException
ICollectionExtractor
getSize
in interface ICollectionExtractor
getSize
in class FieldSizeArrayCollectionExtractor
SnapshotException
public int[] extractEntryIds(IObject coll) throws SnapshotException
ICollectionExtractor
extractEntryIds
in interface ICollectionExtractor
extractEntryIds
in class FieldArrayCollectionExtractor
SnapshotException
public boolean hasCollisionRatio()
IMapExtractor
hasCollisionRatio
in interface IMapExtractor
public Double getCollisionRatio(IObject collection) throws SnapshotException
IMapExtractor
getCollisionRatio
in interface IMapExtractor
SnapshotException
public Iterator<Map.Entry<IObject,IObject>> extractMapEntries(IObject collection) throws SnapshotException
IMapExtractor
extractMapEntries
in interface IMapExtractor
collection
- - the map to extract contents fromSnapshotException