@Override public int getValueLength() { return this.cell.getValueLength(); }
@Override public byte[] getValueArray() { if (lenAsVal) { return Bytes.toBytes(cell.getValueLength()); } else { return HConstants.EMPTY_BYTE_ARRAY; } }
@Override public ByteBuffer getValueByteBuffer() { if (lenAsVal) { return ByteBuffer.wrap(Bytes.toBytes(cell.getValueLength())); } else { return HConstants.EMPTY_BYTE_BUFFER; } }
@Override public int getSerializedSize(boolean withTags) { return super.getSerializedSize(withTags) - this.cell.getValueLength() + this.value.length; }
@Override public byte[] getValueArray() { if (lenAsVal) { return Bytes.toBytes(cell.getValueLength()); } else { return HConstants.EMPTY_BYTE_ARRAY; } }
@Override public ByteBuffer getValueByteBuffer() { if (lenAsVal) { return ByteBuffer.wrap(Bytes.toBytes(cell.getValueLength())); } else { return HConstants.EMPTY_BYTE_BUFFER; } }
ROW1, ByteBufferUtils.toStringBinary(offheapKV.getValueByteBuffer(), offheapKV.getValuePosition(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte()); ROW1, Bytes.toStringBinary(offheapKV.getValueArray(), offheapKV.getValueOffset(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte()); ROW1, ByteBufferUtils.toStringBinary(offheapKV.getValueByteBuffer(), offheapKV.getValuePosition(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte());
@Override public int getValueLength() { return this.cell.getValueLength(); }
@Override public int getValueLength() { return this.cell.getValueLength(); }
@Override public byte[] getValueArray() { if (lenAsVal) { return Bytes.toBytes(cell.getValueLength()); } else { return HConstants.EMPTY_BYTE_ARRAY; } }
@Override public ByteBuffer getValueByteBuffer() { if (lenAsVal) { return ByteBuffer.wrap(Bytes.toBytes(cell.getValueLength())); } else { return HConstants.EMPTY_BYTE_BUFFER; } }
@Override public int getSerializedSize(boolean withTags) { return super.getSerializedSize(withTags) - this.cell.getValueLength() + this.value.length; }
@Override public int getSerializedSize(boolean withTags) { return super.getSerializedSize(withTags) - this.cell.getValueLength() + this.value.length; }
ROW1, ByteBufferUtils.toStringBinary(offheapKV.getValueByteBuffer(), offheapKV.getValuePosition(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte()); ROW1, Bytes.toStringBinary(offheapKV.getValueArray(), offheapKV.getValueOffset(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte()); ROW1, ByteBufferUtils.toStringBinary(offheapKV.getValueByteBuffer(), offheapKV.getValuePosition(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte());
ROW1, ByteBufferUtils.toStringBinary(offheapKV.getValueByteBuffer(), offheapKV.getValuePosition(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte()); ROW1, Bytes.toStringBinary(offheapKV.getValueArray(), offheapKV.getValueOffset(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte()); ROW1, ByteBufferUtils.toStringBinary(offheapKV.getValueByteBuffer(), offheapKV.getValuePosition(), offheapKV.getValueLength())); assertEquals(0L, offheapKV.getTimestamp()); assertEquals(Type.Put.getCode(), offheapKV.getTypeByte());