|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.binarysortable.InputByteBuffer
public class InputByteBuffer
This class is much more efficient than ByteArrayInputStream because none of the methods are synchronized.
Constructor Summary | |
---|---|
InputByteBuffer()
|
Method Summary | |
---|---|
String |
dumpHex()
Return the bytes in hex format. |
byte[] |
getData()
Returns the underlying byte array. |
int |
getEnd()
|
byte |
read()
|
byte |
read(boolean invert)
Read one byte from the byte buffer. |
void |
reset(byte[] data,
int start,
int end)
Reset the byte buffer to the given byte range. |
void |
seek(int position)
Set the current position. |
int |
tell()
Return the current position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputByteBuffer()
Method Detail |
---|
public void reset(byte[] data, int start, int end)
public final byte read() throws IOException
IOException
public final byte read(boolean invert) throws IOException
invert
- whether we want to invert all the bits.
IOException
public final int tell()
public final void seek(int position)
public final int getEnd()
public final byte[] getData()
public String dumpHex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |