/** * Executes this {@link ProcessingStep}. * <br> * <br> * For each {@link Record} contained in the {@link RecordSet} * given as argument, converts it to {@link MutableRecord} calls * {@link AbstractModifier#modify}, and adds the modified record * in the return result. * * @see ProcessingStep#execute * * @param recs The initial set of records * @return A {@link RecordSet} containing the modified records */ @Override public RecordSet execute(RecordSet recs) { RecordSet ret = new RecordSet(); Record modified_record; for (Record rec : recs) { modified_record = this.modify(rec.makeMutable()); ret.addRecord(modified_record); } return recs; }