org.apache.hadoop.hive.serde2.io
Class ShortWritable

java.lang.Object
  extended by 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.


Nested Class Summary
static class ShortWritable.Comparator
          A Comparator optimized for BytesWritable.
 
Constructor Summary
ShortWritable()
           
ShortWritable(short s)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 short get()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(short value)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortWritable

public ShortWritable(short s)

ShortWritable

public ShortWritable()
Method Detail

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 © 2011 The Apache Software Foundation