org.apache.hadoop.hive.serde2.io
Class ByteWritable
java.lang.Object
org.apache.hadoop.hive.serde2.io.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.
ByteWritable
public ByteWritable(byte b)
ByteWritable
public ByteWritable()
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(byte value)
get
public byte get()
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 The Apache Software Foundation