private void processSweepResults(TableToSweep tableToSweep, SweepResults currentIteration) { updateTimeMetricsOneIteration(currentIteration.getTimeInMillis(), currentIteration.getTimeElapsedSinceStartedSweeping()); SweepResults cumulativeResults = getCumulativeSweepResults(tableToSweep, currentIteration); if (currentIteration.getNextStartRow().isPresent()) { saveIntermediateSweepResults(tableToSweep, cumulativeResults); } else { processFinishedSweep(tableToSweep, cumulativeResults); } }
private void processSweepResults(TableToSweep tableToSweep, SweepResults currentIteration) { updateTimeMetricsOneIteration(currentIteration.getTimeInMillis(), currentIteration.getTimeElapsedSinceStartedSweeping()); SweepResults cumulativeResults = getCumulativeSweepResults(tableToSweep, currentIteration); if (currentIteration.getNextStartRow().isPresent()) { saveIntermediateSweepResults(tableToSweep, cumulativeResults); } else { processFinishedSweep(tableToSweep, cumulativeResults); } }