/** * Executes this {@link ProcessingStep}. * <br> * <br> * For each {@link Record} contained in the {@link RecordSet} * given as argument, if {@link AbstractFilter#isIncluded} returns * <code>true</code> the Record is included in the return result, * otherwise it is ignored. * * @see ProcessingStep#execute * * @param recs The initial set of records * @return The resulting set after the filter is applied */ @Override public RecordSet execute(RecordSet recs) { RecordSet ret = new RecordSet(); for (Record rec : recs) { if (this.isIncluded(rec)) { ret.addRecord(rec); } } return ret; }