Example usage for Java org.apache.hadoop.io BytesWritable fields, constructors, methods, implement or subclass
The text is from its open source code.
BytesWritable(byte[] bytes) Create a BytesWritable using the byte array as the initial value. | |
BytesWritable() Create a zero-size sequence. | |
BytesWritable(byte[] bytes, int length) Create a BytesWritable using the byte array as the initial value and length as the length. |
int | compareTo(BinaryComparable other) Compare bytes from {#getBytes()}. |
byte[] | copyBytes() Get a copy of the bytes that is exactly the length of the data. |
boolean | equals(Object right_obj) Are the two byte sequences equal? |
byte[] | get() Get the data from the BytesWritable. |
byte[] | getBytes() Get the data backing the BytesWritable. |
int | getCapacity() Get the capacity, which is the maximum size that could handled without resizing the backing storage. |
int | getLength() Get the current size of the buffer. |
int | getSize() Get the current size of the buffer. |
void | readFields(DataInput in) |
void | set(BytesWritable newData) Set the BytesWritable to the contents of the given newData. |
void | set(byte[] newData, int offset, int length) Set the value to a copy of the given byte range |
void | setCapacity(int new_cap) Change the capacity of the backing storage. |
void | setSize(int size) Change the size of the buffer. |
String | toString() Generate the stream of bytes as hex pairs separated by ' '. |
void | write(DataOutput out) |