Would BytesWritable work ?