|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.binarysortable.OutputByteBuffer
public class OutputByteBuffer
This class is much more efficient than ByteArrayOutputStream because none of the methods are synchronized.
Constructor Summary | |
---|---|
OutputByteBuffer()
|
Method Summary | |
---|---|
String |
dumpHex()
Return the bytes in hex format. |
byte[] |
getData()
Returns the underlying byte array. |
int |
getLength()
Returns the current length. |
void |
reset()
Reset the byte buffer. |
void |
write(byte b,
boolean invert)
Write one byte to the byte buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputByteBuffer()
Method Detail |
---|
public void reset()
public final void write(byte b, boolean invert)
invert
- whether we want to invert all the bits.public final byte[] getData()
public final int getLength()
public String dumpHex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |