public final class Location extends Object implements Comparable<Location>
Modifier and Type | Field and Description |
---|---|
static byte |
MARK_TYPE |
static int |
NOT_SET |
static byte |
NOT_SET_TYPE |
static byte |
USER_TYPE |
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Location o) |
boolean |
equals(Object o) |
int |
getDataFileId() |
CountDownLatch |
getLatch() |
int |
getOffset() |
int |
getPaylodSize() |
int |
getSize() |
byte |
getType() |
int |
hashCode() |
void |
readExternal(DataInput dis) |
void |
setDataFileId(int file) |
void |
setLatch(CountDownLatch latch) |
void |
setOffset(int offset) |
void |
setSize(int size) |
void |
setType(byte type) |
String |
toString() |
void |
writeExternal(DataOutput dos) |
public static final byte MARK_TYPE
public static final byte USER_TYPE
public static final byte NOT_SET_TYPE
public static final int NOT_SET
public int getSize()
public void setSize(int size)
size
- the size of the data record including the header.public int getPaylodSize()
public int getOffset()
public void setOffset(int offset)
public int getDataFileId()
public void setDataFileId(int file)
public byte getType()
public void setType(byte type)
public void writeExternal(DataOutput dos) throws IOException
IOException
public void readExternal(DataInput dis) throws IOException
IOException
public CountDownLatch getLatch()
public void setLatch(CountDownLatch latch)
public int compareTo(Location o)
compareTo
in interface Comparable<Location>
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.