public class ContentBytes
extends org.apache.hadoop.io.BinaryComparable
implements org.apache.hadoop.io.WritableComparable<org.apache.hadoop.io.BinaryComparable>, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ContentBytes.Comparator
A Comparator optimized for BytesWritable.
|
Constructor and Description |
---|
ContentBytes() |
ContentBytes(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object right_obj)
Are the two byte sequences equal?
|
byte[] |
getBytes() |
int |
getLength() |
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString()
Generate the stream of bytes as hex pairs separated by ' '.
|
void |
write(java.io.DataOutput out) |
public ContentBytes()
public ContentBytes(byte[] bytes)
public byte[] getBytes()
getBytes
in class org.apache.hadoop.io.BinaryComparable
public int getLength()
getLength
in class org.apache.hadoop.io.BinaryComparable
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int hashCode()
hashCode
in class org.apache.hadoop.io.BinaryComparable
public boolean equals(java.lang.Object right_obj)
equals
in class org.apache.hadoop.io.BinaryComparable
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012 Bixo Labs