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 TypeMethodDescriptionint
boolean
int
int
int
hashCode()
static Location
readFromDataInput
(DataInput data) static Location
readFromPacket
(Packet packet) toString()
void
writeToDataOutput
(DataOutput data) void
writeToPacket
(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:
compareTo
in 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
-