@Override
public void put(Value value, Object object, CoderContext context) {
DefaultMeasure m = (DefaultMeasure) object;
DefaultInputFile inputFile = (DefaultInputFile) m.inputFile();
if (inputFile != null) {
value.putString(inputFile.moduleKey());
value.putString(inputFile.relativePath());
} else {
value.putNull();
}
value.putString(m.metric().key());