public class Key extends Object implements org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<Key>
| Modifier and Type | Field and Description |
|---|---|
static int |
MERGES_REL |
static int |
OTHER_REL |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Key o) |
static Key |
create(int keyType,
String id) |
org.apache.hadoop.io.Text |
getId() |
org.apache.hadoop.io.IntWritable |
getKeyType() |
static Key |
mergesRel(String id) |
static Key |
otherRel(String id) |
void |
readFields(DataInput in) |
void |
setId(org.apache.hadoop.io.Text id) |
void |
setKeyType(org.apache.hadoop.io.IntWritable keyType) |
String |
toString() |
void |
write(DataOutput out) |
public static final int MERGES_REL
public static final int OTHER_REL
public Key()
public Key(int keyType,
String id)
public org.apache.hadoop.io.Text getId()
public void setId(org.apache.hadoop.io.Text id)
public org.apache.hadoop.io.IntWritable getKeyType()
public void setKeyType(org.apache.hadoop.io.IntWritable keyType)
public int compareTo(Key o)
compareTo in interface Comparable<Key>public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2023. All rights reserved.