Class OLogSequenceNumber
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSequenceNumber
- All Implemented Interfaces:
Comparable<OLogSequenceNumber>
Immutable number representing the position in WAL file (LSN).
- Since:
- 29.04.13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(OLogSequenceNumber otherNumber) booleanintlonginthashCode()voidtoStream(DataOutput out) toString()
-
Constructor Details
-
OLogSequenceNumber
public OLogSequenceNumber(long segment, int position) -
OLogSequenceNumber
- Throws:
IOException
-
-
Method Details
-
getSegment
public long getSegment() -
equals
-
hashCode
public int hashCode() -
getPosition
public int getPosition() -
compareTo
- Specified by:
compareToin interfaceComparable<OLogSequenceNumber>
-
toStream
- Throws:
IOException
-
toString
-