} else if (value instanceof BytesWritable) {
recordConsumer.addBinary((Binary.fromByteArray(((BytesWritable) value).getBytes())));
} else if (value instanceof TimestampWritable) {
Timestamp ts = ((TimestampWritable) value).getTimestamp();
NanoTime nt = NanoTimeUtils.getNanoTime(ts);
nt.writeValue(recordConsumer);
} else {
throw new IllegalArgumentException("Unknown value type: " + value + " " + value.getClass());
}
}
}