Class LanguageParamOrReturn
- java.lang.Object
-
- es.bsc.dataclay.serialization.lib.LanguageParamOrReturn
-
- All Implemented Interfaces:
DataClaySerializable
public final class LanguageParamOrReturn extends Object implements DataClaySerializable
Language-dependant params or returns.
-
-
Field Summary
Fields Modifier and Type Field Description protected DataClayByteArrayserializedBytesArray of serialized bytes of object.protected DataClayJavaWrapperwrapperWrapper including Java object.
-
Constructor Summary
Constructors Constructor Description LanguageParamOrReturn()For yaml serialization.LanguageParamOrReturn(DataClayJavaWrapper thewrapper)ConstructorLanguageParamOrReturn(DataClayObjectMetaData themetaData, DataClayByteArray thebytes)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.DataClayObjectMetaDatagetMetaData()DataClayByteArraygetSerializedBytes()DataClayJavaWrappergetWrapper()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.voidsetMetaData(DataClayObjectMetaData themetaData)voidsetSerializedBytes(DataClayByteArray theserializedBytes)voidsetWrapper(DataClayJavaWrapper thewrapper)StringtoString()
-
-
-
Field Detail
-
wrapper
protected DataClayJavaWrapper wrapper
Wrapper including Java object.
-
serializedBytes
protected DataClayByteArray serializedBytes
Array of serialized bytes of object.
-
-
Constructor Detail
-
LanguageParamOrReturn
public LanguageParamOrReturn()
For yaml serialization.
-
LanguageParamOrReturn
public LanguageParamOrReturn(DataClayJavaWrapper thewrapper)
Constructor- Parameters:
thewrapper- Wrapper containing Java object.
-
LanguageParamOrReturn
public LanguageParamOrReturn(DataClayObjectMetaData themetaData, DataClayByteArray thebytes)
Constructor- Parameters:
themetaData- MetaData of the java objectthebytes- Bytes of language 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:DataClaySerializableSerializes the object into the buffer provided using the interface represented in the bitmap specified.- Specified by:
serializein 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:DataClaySerializableDeserializes the object from the buffer provided using the interface represented in the bitmap specified.- Specified by:
deserializein 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
-
getSerializedBytes
public DataClayByteArray getSerializedBytes()
- Returns:
- the serializedBytes
-
setSerializedBytes
public void setSerializedBytes(DataClayByteArray theserializedBytes)
- Parameters:
theserializedBytes- the serializedBytes to set
-
getMetaData
public DataClayObjectMetaData getMetaData()
- Returns:
- the metaData
-
setMetaData
public void setMetaData(DataClayObjectMetaData themetaData)
- Parameters:
themetaData- the metaData to set
-
getWrapper
public DataClayJavaWrapper getWrapper()
- Returns:
- the wrapper
-
setWrapper
public void setWrapper(DataClayJavaWrapper thewrapper)
- Parameters:
thewrapper- the wrapper to set
-
-