@Override public void fuse(RecordGroup<FusableCountry> group, FusableCountry fusedRecord) { // get the fused value FusedValue<String, FusableCountry> fused = getFusedValue(group); // set the value for the fused record fusedRecord.setCode(fused.getValue()); // add provenance info // System.out.println("Provenance Code: " + fused.getOriginalIds()); fusedRecord.setAttributeProvenance(FusableCountry.CODE, fused.getOriginalIds()); }
@Override protected String getValue(FusableCountry record) { return record.getCode(); }
@Override public boolean hasValue(FusableCountry record) { return record.hasValue(FusableCountry.CODE); }