for (int i = 0; i < keys.size(); i++) {
Key k = keys.get(i);
Value v = values.get(i);
// write the colfam
{
ByteSequence bs = k.getColumnFamilyData();
dout.writeInt(bs.length());
dout.write(bs.getBackingArray(), bs.offset(), bs.length());
}
// write the colqual
{
ByteSequence bs = k.getColumnQualifierData();
dout.writeInt(bs.length());
dout.write(bs.getBackingArray(), bs.offset(), bs.length());
}
// write the column visibility
{
ByteSequence bs = k.getColumnVisibilityData();
dout.writeInt(bs.length());
dout.write(bs.getBackingArray(), bs.offset(), bs.length());
}
// write the timestamp
dout.writeLong(k.getTimestamp());
// write the value
byte[] valBytes = v.get();