org.apache.hadoop.hive.ql.exec
Class ByteWritable

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.ByteWritable

public class ByteWritable
extends Object

ByteWritable.


Nested Class Summary
static class ByteWritable.Comparator
          A Comparator optimized for BytesWritable.
 
Constructor Summary
ByteWritable()
           
ByteWritable(int b)
           
 
Method Summary
 int compareTo(Object o)
          Compares two ByteWritables.
 boolean equals(Object o)
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(int b)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteWritable

public ByteWritable(int b)

ByteWritable

public ByteWritable()
Method Detail

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

set

public void set(int b)

compareTo

public int compareTo(Object o)
Compares two ByteWritables.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 The Apache Software Foundation