|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.io.ShortWritable
@InterfaceAudience.Public @InterfaceStability.Stable public class ShortWritable
A WritableComparable for shorts.
| Constructor Summary | |
|---|---|
ShortWritable()
|
|
ShortWritable(short value)
|
|
| Method Summary | |
|---|---|
int |
compareTo(ShortWritable o)
Compares two ShortWritable. |
boolean |
equals(Object o)
Returns true iff o is a ShortWritable with the same value. |
short |
get()
Return the value of this ShortWritable. |
int |
hashCode()
hash code |
void |
readFields(DataInput in)
read the short value |
void |
set(short value)
Set the value of this ShortWritable. |
String |
toString()
Short values in string format |
void |
write(DataOutput out)
write short value |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShortWritable()
public ShortWritable(short value)
| Method Detail |
|---|
public void set(short value)
public short get()
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
public void write(DataOutput out)
throws IOException
write in interface Writableout - DataOuput to serialize this object into.
IOExceptionpublic boolean equals(Object o)
o is a ShortWritable with the same value.
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(ShortWritable o)
compareTo in interface Comparable<ShortWritable>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||