Class OPhysicalPosition
java.lang.Object
com.orientechnologies.orient.core.storage.OPhysicalPosition
- All Implemented Interfaces:
OSerializableStream,Externalizable,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongintbyteint -
Constructor Summary
ConstructorsConstructorDescriptionOPhysicalPosition(byte iRecordType) OPhysicalPosition(long iClusterPosition) OPhysicalPosition(long iClusterPosition, int iVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(OPhysicalPosition iSource) booleanfromStream(byte[] iStream) Unmarshalls the object.inthashCode()voidbyte[]toStream()Marshalls the object.toString()void
-
Field Details
-
clusterPosition
public long clusterPosition -
recordType
public byte recordType -
recordVersion
public int recordVersion -
recordSize
public int recordSize
-
-
Constructor Details
-
OPhysicalPosition
public OPhysicalPosition() -
OPhysicalPosition
public OPhysicalPosition(long iClusterPosition) -
OPhysicalPosition
public OPhysicalPosition(byte iRecordType) -
OPhysicalPosition
public OPhysicalPosition(long iClusterPosition, int iVersion)
-
-
Method Details
-
copyFrom
-
toString
-
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- Parameters:
iStream- byte array representation of the object- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
- Throws:
OSerializationException- if the unmarshalling does not succeed
-
toStream
Description copied from interface:OSerializableStreamMarshalls the object. Transforms the current object in byte[] form to being stored or transferred over the network.- Specified by:
toStreamin interfaceOSerializableStream- Returns:
- The byte array representation of the object
- Throws:
OSerializationException- if the marshalling does not succeed- See Also:
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-