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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.ByteWritable
All Implemented Interfaces:
Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable

public class ByteWritable
extends Object
implements org.apache.hadoop.io.WritableComparable

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
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
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(int b)

compareTo

public int compareTo(Object o)
Compares two ByteWritables.

Specified by:
compareTo in interface Comparable

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 The Apache Software Foundation. All rights reserved.