@InterfaceAudience.Public @InterfaceStability.Stable public class ShortWritable extends Object implements WritableComparable<ShortWritable>
| Constructor and Description | 
|---|
ShortWritable()  | 
ShortWritable(short value)  | 
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
public ShortWritable()
public ShortWritable(short value)
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.IOExceptionpublic 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.public int compareTo(ShortWritable o)
compareTo in interface Comparable<ShortWritable>Copyright © 2021 Apache Software Foundation. All rights reserved.