org.apache.hadoop.hive.serde2.io
Class ShortWritable
java.lang.Object
org.apache.hadoop.hive.serde2.io.ShortWritable
- All Implemented Interfaces:
- Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable
public class ShortWritable
- extends Object
- implements org.apache.hadoop.io.WritableComparable
ShortWritable
public ShortWritable(short s)
ShortWritable
public ShortWritable()
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
set
public void set(short value)
get
public short get()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
Copyright © 2009 The Apache Software Foundation