public class ByteBufWritableComparable extends Object implements org.apache.hadoop.io.WritableComparable<ByteBufWritableComparable>
| Constructor and Description |
|---|
ByteBufWritableComparable() |
ByteBufWritableComparable(ByteBuffer buff) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ByteBufWritableComparable o) |
boolean |
equals(Object b) |
ByteBuffer |
getByteBuf() |
byte[] |
getBytes() |
int |
getLength() |
void |
readFields(DataInput in) |
void |
setByteBuf(ByteBuffer b) |
String |
toString() |
void |
write(DataOutput out) |
public ByteBufWritableComparable()
public ByteBufWritableComparable(ByteBuffer buff)
public int getLength()
public byte[] getBytes()
public ByteBuffer getByteBuf()
public void setByteBuf(ByteBuffer b)
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(ByteBufWritableComparable o)
compareTo in interface Comparable<ByteBufWritableComparable>Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.