Class Map.EntryWrapper
- java.lang.Object
-
- es.bsc.dataclay.serialization.java.DataClayJavaWrapper
-
- es.bsc.dataclay.serialization.java.util.Map.EntryWrapper
-
- All Implemented Interfaces:
DataClaySerializable
- Enclosing class:
- Map
public static final class Map.EntryWrapper extends DataClayJavaWrapper
This class represents a java entry Map in DataClay.
-
-
Constructor Summary
Constructors Constructor Description EntryWrapper()Constructor used for recursive deserializationEntryWrapper(Map.Entry newEntry)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs)Deserializes the object from the buffer provided using the interface represented in the bitmap specified.booleanequals(Object object)Map.EntrygetJavaObject()Get the DataClayMap::entryinthashCode()booleanisImmutable()Indicates if object is immutable or notbooleanisNull()Indicates if wrapped object is null.voidserialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)Serializes the object into the buffer provided using the interface represented in the bitmap specified.voidsetEntry(Map.Entry newentry)Set the DataClayMap::entry
-
-
-
Constructor Detail
-
EntryWrapper
public EntryWrapper()
Constructor used for recursive deserialization
-
EntryWrapper
public EntryWrapper(Map.Entry newEntry)
Constructor- Parameters:
newEntry- Entry
-
-
Method Detail
-
getJavaObject
public Map.Entry getJavaObject()
Get the DataClayMap::entry- Specified by:
getJavaObjectin classDataClayJavaWrapper- Returns:
- the entry
-
setEntry
public void setEntry(Map.Entry newentry)
Set the DataClayMap::entry- Parameters:
newentry- the entry to set
-
serialize
public void serialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)
Description copied from interface:DataClaySerializableSerializes the object into the buffer provided using the interface represented in the bitmap specified.- Parameters:
dcBuffer- Buffer in which to serialize the objectignoreUserTypes- Indicates if user types found during serialization must be ignored or not (for instance, non recursive make persistent)ifaceBitMaps- Map of bitmaps representing the interfaces to usecurSerializedObjs- Current serialized objects Object -> OID tag. This structure must be different during each serialization since OID tags are not shared.pendingObjs- Pending objs.referenceCounting- Reference counting from this object.
-
deserialize
public void deserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs)
Description copied from interface:DataClaySerializableDeserializes the object from the buffer provided using the interface represented in the bitmap specified.- Parameters:
dcBuffer- Buffer from which to deserialize the objectifaceBitMaps- Map of bitmaps representing the interfaces to usemetadata- Useful metadata of the object for executioncurDeserializedJavaObjs- Currently deserialized Java objects
-
isImmutable
public boolean isImmutable()
Description copied from class:DataClayJavaWrapperIndicates if object is immutable or not- Specified by:
isImmutablein classDataClayJavaWrapper- Returns:
- TRUE if immutable, FALSE otherwise.
-
isNull
public boolean isNull()
Description copied from class:DataClayJavaWrapperIndicates if wrapped object is null.- Specified by:
isNullin classDataClayJavaWrapper- Returns:
- TRUE if null.
-
-