public class HiveBytesArrayWritable
extends org.apache.hadoop.io.BinaryComparable
implements org.apache.hadoop.io.WritableComparable<org.apache.hadoop.io.BinaryComparable>
BytesWritable that allows direct access to the underlying byte array without copying.
Used to wrap already json serialized hive entities.| Modifier and Type | Class and Description |
|---|---|
static class |
HiveBytesArrayWritable.Comparator |
| Constructor and Description |
|---|
HiveBytesArrayWritable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object right_obj)
Are the two byte sequences equal?
|
byte[] |
getBytes() |
org.elasticsearch.hadoop.util.BytesArray |
getContent() |
int |
getLength() |
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
setContent(org.elasticsearch.hadoop.util.BytesArray ba) |
java.lang.String |
toString()
Generate the stream of bytes as hex pairs separated by ' '.
|
void |
write(java.io.DataOutput out) |
public int getLength()
getLength in class org.apache.hadoop.io.BinaryComparablepublic byte[] getBytes()
getBytes in class org.apache.hadoop.io.BinaryComparablepublic void setContent(org.elasticsearch.hadoop.util.BytesArray ba)
public org.elasticsearch.hadoop.util.BytesArray getContent()
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic boolean equals(java.lang.Object right_obj)
equals in class org.apache.hadoop.io.BinaryComparablepublic int hashCode()
hashCode in class org.apache.hadoop.io.BinaryComparablepublic java.lang.String toString()
toString in class java.lang.Object