Package es.bsc.dataclay.util.ids
Class ResourceID
- java.lang.Object
-
- es.bsc.dataclay.util.ids.ID
-
- es.bsc.dataclay.util.ids.ResourceID
-
- All Implemented Interfaces:
DataClaySerializable
,Serializable
public final class ResourceID extends ID
This class represents the identification of a Resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceID()
ResourceID constructor.ResourceID(String uuidStr)
Constructs a new *ID from a UUID string.ResourceID(UUID uuid)
Constructs a new ResourceID with the UUID provided
-
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.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.-
Methods inherited from class es.bsc.dataclay.util.ids.ID
deserializeIDBase, equals, getId, hashCode, serializeBase, setId, toString
-
-
-
-
Constructor Detail
-
ResourceID
public ResourceID()
ResourceID constructor.
-
ResourceID
public ResourceID(UUID uuid)
Constructs a new ResourceID with the UUID provided- Parameters:
uuid
- Universal ID of the new ResourceID- See Also:
ID(UUID)
-
ResourceID
public ResourceID(String uuidStr)
Constructs a new *ID from a UUID string.- Parameters:
uuidStr
- Universal ID for the new *ID, string representation.
-
-
Method Detail
-
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.- 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
-
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.- 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.
-
-