public final class Location extends Object implements RecordLocation
| Modifier and Type | Field and Description |
|---|---|
static int |
SERIALIZED_SIZE |
| Constructor and Description |
|---|
Location(int logFileId,
int fileOffset) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
int |
getLogFileId() |
int |
getLogFileOffset() |
int |
hashCode() |
static Location |
readFromDataInput(DataInput data) |
static Location |
readFromPacket(Packet packet) |
String |
toString() |
void |
writeToDataOutput(DataOutput data) |
void |
writeToPacket(Packet packet) |
public static final int SERIALIZED_SIZE
public int compareTo(Object o)
compareTo in interface Comparablepublic int getLogFileId()
public int getLogFileOffset()
public void writeToPacket(Packet packet) throws IOException
IOExceptionpublic void writeToDataOutput(DataOutput data) throws IOException
IOExceptionpublic static Location readFromPacket(Packet packet) throws IOException
IOExceptionpublic static Location readFromDataInput(DataInput data) throws IOException
IOExceptionCopyright © 2005–2019. All rights reserved.