/** * This method returns the sum of counts computed by the data structure. This is always less * than rowsScanned, the number of rows in the table. * @return The sum of all counts stored in the hash-map. */ private int getTotalCount() { return this.hMap.values().stream().reduce(0, Integer::sum); }