}
@Override
public int serializeRecord(Record rec, byte[] target) throws Exception
{
IntValue key = rec.getField(0, IntValue.class);
IntValue value = rec.getField(1, IntValue.class);
this.bld.setLength(0);
this.bld.append(key.getValue());
this.bld.append('_');
this.bld.append(value.getValue());
byte[] bytes = this.bld.toString().getBytes();
if (bytes.length <= target.length) {
System.arraycopy(bytes, 0, target, 0, bytes.length);
return bytes.length;