*/
private void printRecord(BytesRefArrayWritable value, StringBuilder buf)
throws IOException {
int n = value.size();
if (n > 0) {
BytesRefWritable v = value.unCheckedGet(0);
ByteBuffer bb = ByteBuffer.wrap(v.getData(), v.getStart(), v.getLength());
buf.append(decoder.decode(bb));
for (int i = 1; i < n; i++) {
// do not put the TAB for the last column
buf.append(RCFileCat.TAB);
v = value.unCheckedGet(i);
bb = ByteBuffer.wrap(v.getData(), v.getStart(), v.getLength());
buf.append(decoder.decode(bb));
}
buf.append(RCFileCat.NEWLINE);
}
}