{
DataOutputBuffer out = new DataOutputBuffer(serializedSize());
ByteBufferUtil.writeWithShortLength(partitionKey, out);
ByteBufferUtil.writeWithShortLength(cellName, out);
out.writeInt(remaining);
return out.asByteBuffer();
}
catch (IOException e)
{
throw new RuntimeException(e);
}