public class HiveBytesArrayWritable extends BinaryComparable implements WritableComparable<BinaryComparable>, Serializable
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(Object right_obj)
Are the two byte sequences equal?
|
byte[] |
getBytes() |
org.elasticsearch.hadoop.util.BytesArray |
getContent() |
int |
getLength() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setContent(org.elasticsearch.hadoop.util.BytesArray ba) |
String |
toString()
Generate the stream of bytes as hex pairs separated by ' '.
|
void |
write(DataOutput out) |
compareTo, compareToclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic int getLength()
getLength in class BinaryComparablepublic byte[] getBytes()
getBytes in class BinaryComparablepublic void setContent(org.elasticsearch.hadoop.util.BytesArray ba)
public org.elasticsearch.hadoop.util.BytesArray getContent()
public void readFields(DataInput in) throws IOException
readFields in interface WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface WritableIOExceptionpublic boolean equals(Object right_obj)
equals in class BinaryComparablepublic int hashCode()
hashCode in class BinaryComparable