|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.io.BinaryComparable
org.elasticsearch.hadoop.hive.FastBytesWritable
public class FastBytesWritable
Replacement of BytesWritable
that allows direct access to the underlying byte array without copying.
Nested Class Summary | |
---|---|
static class |
FastBytesWritable.Comparator
|
Constructor Summary | |
---|---|
FastBytesWritable()
|
|
FastBytesWritable(byte[] bytes,
int size)
Create a BytesWritable using the byte array as the initial value. |
Method Summary | |
---|---|
boolean |
equals(Object right_obj)
Are the two byte sequences equal? |
byte[] |
getBytes()
Get the data from the BytesWritable. |
int |
getLength()
Get the current size of the buffer. |
int |
hashCode()
|
void |
readFields(DataInput in)
|
void |
set(byte[] bytes,
int size)
|
String |
toString()
Generate the stream of bytes as hex pairs separated by ' '. |
void |
write(DataOutput out)
|
Methods inherited from class org.apache.hadoop.io.BinaryComparable |
---|
compareTo, compareTo |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public FastBytesWritable()
public FastBytesWritable(byte[] bytes, int size)
bytes
- This array becomes the backing storage for the object.Method Detail |
---|
public int getLength()
getLength
in class BinaryComparable
public void set(byte[] bytes, int size)
public byte[] getBytes()
getBytes
in class BinaryComparable
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public int hashCode()
hashCode
in class BinaryComparable
public boolean equals(Object right_obj)
equals
in class BinaryComparable
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |