예제 #1
0
  @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
  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());
  }