|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.zeno.fastblob.state.ObjectIdentityOrdinalMap
public class ObjectIdentityOrdinalMap
A mapping of objects to their ordinals. For the purposes of this mapping, objects are only found if they are == to each other.
This is used during "heap-friendly" double snapshot refreshes with the FastBlob. The vast majority of the extra memory required to maintain this mapping is the hashedOrdinals[] array, which is just an int array. The values of this array are the ordinals of the objects located at the position of each object's identity hash. Collisions are resolved via linear probing.
Constructor Summary | |
---|---|
ObjectIdentityOrdinalMap(java.util.List objects)
The List of Objects passed in here should be the same list as held by the FastBlobTypeDeserializationState. These Objects should be arranged in ordinal order, that is, the Object with ordinal x is contained at index x in the List. |
Method Summary | |
---|---|
int |
get(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectIdentityOrdinalMap(java.util.List objects)
Method Detail |
---|
public int get(java.lang.Object obj)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |