docs: @Override
    public Map<String, Object> rewrite(boolean showDebugInfo) throws IOException {
      Map<String, Object> response = new HashMap<>();
      for (String statsItem : getStatsItems()) {
        if (statsItem.equals(CodecUtil.STATS_TYPE_SUM)) {
          response.put(statsItem, valueSum);
        } else if (statsItem.equals(CodecUtil.STATS_TYPE_N)) {
          response.put(statsItem, valueN);
        } else if (statsItem.equals(CodecUtil.STATS_TYPE_MEAN)) {
          response.put(statsItem, getValue(statsItem));
        } else {
          response.put(statsItem, null);
        }
      }
      if (errorNumber > 0) {
        Map<String, Object> errorResponse = new HashMap<String, Object>();
        for (Entry<String, Integer> entry : getErrorList().entrySet()) {
          errorResponse.put(entry.getKey(), entry.getValue());
        }
        response.put("errorNumber", errorNumber);
        response.put("errorList", errorResponse);
      }
      if (showDebugInfo) {
        response.put("sourceNumber", sourceNumber);
        response.put("stats", "basic");
      }
      return response;
    }