Class WireTransferable.ByteArrayOffsetAndLen
java.lang.Object
org.apache.druid.query.rowsandcols.semantic.WireTransferable.ByteArrayOffsetAndLen
- Enclosing interface:
- WireTransferable
A holder class for a byte array, offset and length, this exists to minimize copies. It's pretty similar to a
ByteBuffer, but is separate because jackson cannot write a ByteBuffer anyway so might as well wrap in this.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ByteArrayOffsetAndLen
public ByteArrayOffsetAndLen(byte[] array, int offset, int length)
-
-
Method Details
-
getArray
public byte[] getArray() -
getOffset
public int getOffset() -
getLength
public int getLength() -
asByteBuffer
-