public final class Location extends Object implements Comparable<Location>
Modifier and Type | Field and Description |
---|---|
static int |
NOT_SET |
static byte |
NOT_SET_TYPE |
static byte |
USER_TYPE |
Constructor and Description |
---|
Location() |
Location(int dataFileId,
int offset) |
Location(Location item) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Location o) |
boolean |
equals(Object o) |
int |
getDataFileId() |
CountDownLatch |
getLatch() |
int |
getOffset() |
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 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 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–2020 The Apache Software Foundation. All rights reserved.