Class Location
java.lang.Object
org.apache.activeio.journal.active.Location
- All Implemented Interfaces:
Comparable,RecordLocation
Defines a where a record can be located in the Journal.
- Version:
- $Revision: 1.1 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintintinthashCode()static LocationreadFromDataInput(DataInput data) static LocationreadFromPacket(Packet packet) toString()voidwriteToDataOutput(DataOutput data) voidwriteToPacket(Packet packet)
-
Field Details
-
SERIALIZED_SIZE
public static final int SERIALIZED_SIZE- See Also:
-
-
Constructor Details
-
Location
public Location(int logFileId, int fileOffset)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable
-
hashCode
public int hashCode() -
equals
-
toString
-
getLogFileId
public int getLogFileId() -
getLogFileOffset
public int getLogFileOffset() -
writeToPacket
- Throws:
IOException
-
writeToDataOutput
- Throws:
IOException
-
readFromPacket
- Throws:
IOException
-
readFromDataInput
- Throws:
IOException
-