Class OImmutableRecordId
java.lang.Object
com.orientechnologies.orient.core.id.ORecordId
com.orientechnologies.orient.core.id.OImmutableRecordId
- All Implemented Interfaces:
OIdentifiable,ORID,OSerializableStream,Serializable,Comparable<OIdentifiable>,Comparator<OIdentifiable>
Immutable ORID implementation. To be really immutable fields must not be public anymore. TODO!
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.id.ORecordId
EMPTY_RECORD_ID, EMPTY_RECORD_ID_STREAM, PERSISTENT_SIZEFields inherited from interface com.orientechnologies.orient.core.id.ORID
CLUSTER_ID_INVALID, CLUSTER_MAX, CLUSTER_POS_INVALID, PREFIX, SEPARATOR, VERSION_POS_INVALID -
Constructor Summary
ConstructorsConstructorDescriptionOImmutableRecordId(int iClusterId, long iClusterPosition) OImmutableRecordId(ORecordId iRID) -
Method Summary
Modifier and TypeMethodDescriptionvoidfromStream(byte[] iBuffer) Unmarshalls the object.fromStream(OMemoryStream iStream) fromStream(InputStream iStream) voidfromString(String iRecordId) voidreset()Methods inherited from class com.orientechnologies.orient.core.id.ORecordId
compare, compareTo, copy, deserialize, equals, fromStream, generateString, getClusterId, getClusterPosition, getIdentity, getRecord, hashCode, isA, isNew, isNew, isPersistent, isPersistent, isTemporary, isTemporary, isValid, isValid, next, nextRid, serialize, setClusterId, setClusterPosition, toStream, toStream, toStream, toStream, toString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OImmutableRecordId
public OImmutableRecordId(int iClusterId, long iClusterPosition) -
OImmutableRecordId
-
-
Method Details
-
copyFrom
-
fromStream
Description copied from interface:OSerializableStreamUnmarshalls the object. Fills the current object with the values contained in the byte array representation restoring a previous state. Usually byte[] comes from the storage or network.- Specified by:
fromStreamin interfaceOSerializableStream- Overrides:
fromStreamin classORecordId- Parameters:
iBuffer- byte array representation of the object- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
fromStream
- Overrides:
fromStreamin classORecordId
-
fromStream
- Overrides:
fromStreamin classORecordId- Throws:
IOException
-
fromString
- Overrides:
fromStringin classORecordId
-
reset
public void reset()
-