@Override public void fuse(RecordGroup<FusableCompany> group, FusableCompany fusedRecord) { // get the fused value FusedValue<String, FusableCompany> fused = getFusedValue(group); // set the value for the fused record fusedRecord.setName(fused.getValue()); // add provenance info fusedRecord.setAttributeProvenance(FusableCompany.NAME, fused.getOriginalIds()); }
@Override protected String getValue(FusableCompany record) { return record.getName(); }
@Override public boolean hasValue(FusableCompany record) { return record.hasValue(FusableCompany.NAME); }