org.apache.activeio.journal.active
Class Location
java.lang.Object
org.apache.activeio.journal.active.Location
- All Implemented Interfaces:
- Comparable, RecordLocation
public final class Location
- extends Object
- implements RecordLocation
Defines a where a record can be located in the Journal.
- Version:
- $Revision: 1.1 $
Constructor Summary |
Location(int logFileId,
int fileOffset)
|
SERIALIZED_SIZE
public static final int SERIALIZED_SIZE
- See Also:
- Constant Field Values
Location
public Location(int logFileId,
int fileOffset)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getLogFileId
public int getLogFileId()
getLogFileOffset
public int getLogFileOffset()
writeToPacket
public void writeToPacket(Packet packet)
throws IOException
- Throws:
IOException
writeToDataOutput
public void writeToDataOutput(DataOutput data)
throws IOException
- Throws:
IOException
readFromPacket
public static Location readFromPacket(Packet packet)
throws IOException
- Throws:
IOException
readFromDataInput
public static Location readFromDataInput(DataInput data)
throws IOException
- Throws:
IOException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.