/** * Given an initial set of rows produced by an {@link org.batfish.common.Answerer}, this procedure * processes exclusions, assertions, and summary to update this object. * * @param question The question that generated the initial set of rows * @param initialSet The initial set of rows */ public void postProcessAnswer(Question question, Iterable<Row> initialSet) { initialSet.forEach( initialRow -> { // exclude or not? Exclusion exclusion = Exclusion.covered(initialRow, question.getExclusions()); if (exclusion != null) { addExcludedRow(initialRow, exclusion.getName()); } else { addRow(initialRow); } }); setSummary(computeSummary(question.getAssertion())); }
Row answerValues = computeRowValues(query.getExtractions(), query.getCompositions(), result, tableMetadata); Exclusion exclusion = Exclusion.covered(answerValues, question.getExclusions()); if (exclusion != null) { answer.addExcludedRow(answerValues, exclusion.getName());