Class ObjectWithDataParamOrReturn
- java.lang.Object
-
- es.bsc.dataclay.serialization.lib.ObjectWithDataParamOrReturn
-
- All Implemented Interfaces:
DataClaySerializable
public final class ObjectWithDataParamOrReturn extends Object implements DataClaySerializable
DataClay object with Data param or return (volatiles, make persistent...).
-
-
Constructor Summary
Constructors Constructor Description ObjectWithDataParamOrReturn()
For yaml serialization.ObjectWithDataParamOrReturn(DataClayObject thedataClayObject)
ConstructorObjectWithDataParamOrReturn(ObjectID theObjectID, MetaClassID theclassID, DataClayObjectMetaData themetadata, DataClayByteArray thebytes)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(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.MetaClassID
getClassID()
DataClayObject
getDataClayObject()
Get dataClayObjectDataClayObjectMetaData
getMetaData()
ObjectID
getObjectID()
Get object IDDataClayByteArray
getSerializedBytes()
int
hashCode()
void
serialize(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.void
setClassID(MetaClassID newclassID)
Set classIDvoid
setDataClayObject(DataClayObject newdataClayObject)
Set dataClayObjectvoid
setMetaData(DataClayObjectMetaData themetaData)
void
setObjectID(ObjectID newObjectID)
Set object IDvoid
setSerializedBytes(DataClayByteArray theserializedBytes)
String
toString()
-
-
-
Constructor Detail
-
ObjectWithDataParamOrReturn
public ObjectWithDataParamOrReturn()
For yaml serialization.
-
ObjectWithDataParamOrReturn
public ObjectWithDataParamOrReturn(DataClayObject thedataClayObject)
Constructor- Parameters:
thedataClayObject
- The Object
-
ObjectWithDataParamOrReturn
public ObjectWithDataParamOrReturn(ObjectID theObjectID, MetaClassID theclassID, DataClayObjectMetaData themetadata, DataClayByteArray thebytes)
Constructor- Parameters:
theObjectID
- Object idtheclassID
- Class IDthemetadata
- MetaDatathebytes
- Bytes of object
-
-
Method Detail
-
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:DataClaySerializable
Serializes the object into the buffer provided using the interface represented in the bitmap specified.- Specified by:
serialize
in interfaceDataClaySerializable
- 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:DataClaySerializable
Deserializes the object from the buffer provided using the interface represented in the bitmap specified.- Specified by:
deserialize
in interfaceDataClaySerializable
- 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
-
getObjectID
public ObjectID getObjectID()
Get object ID- Returns:
- Object ID
-
getDataClayObject
public DataClayObject getDataClayObject()
Get dataClayObject- Returns:
- DataClayObject
-
getSerializedBytes
public DataClayByteArray getSerializedBytes()
- Returns:
- the serializedBytes
-
setSerializedBytes
public void setSerializedBytes(DataClayByteArray theserializedBytes)
- Parameters:
theserializedBytes
- the serializedBytes to set
-
getClassID
public MetaClassID getClassID()
- Returns:
- the classID
-
getMetaData
public DataClayObjectMetaData getMetaData()
- Returns:
- the metaData
-
setMetaData
public void setMetaData(DataClayObjectMetaData themetaData)
- Parameters:
themetaData
- the metaData to set
-
setObjectID
public void setObjectID(ObjectID newObjectID)
Set object ID- Parameters:
newObjectID
- Object ID
-
setDataClayObject
public void setDataClayObject(DataClayObject newdataClayObject)
Set dataClayObject- Parameters:
newdataClayObject
- the dataClayObject to set
-
setClassID
public void setClassID(MetaClassID newclassID)
Set classID- Parameters:
newclassID
- the classID to set
-
-