public class LongIntPairWritable extends java.lang.Object implements org.apache.hadoop.io.WritableComparable<LongIntPairWritable>
Constructor and Description |
---|
LongIntPairWritable() |
LongIntPairWritable(long id,
int value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LongIntPairWritable other) |
boolean |
equals(java.lang.Object o) |
long |
getId() |
int |
getValue() |
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
setId(long id) |
void |
setValue(int value) |
void |
write(java.io.DataOutput out) |
public LongIntPairWritable()
public LongIntPairWritable(long id, int value)
public final long getId()
public final void setId(long id)
public final int getValue()
public final void setValue(int value)
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(LongIntPairWritable other)
compareTo
in interface java.lang.Comparable<LongIntPairWritable>