@Override
  void normalizeWidths() {
    if (!list.isEmpty())
    {
      int[] max = new int[columnCount];
      for (Row row : list) {
        for (int j = 0; j < columnCount; j++) {
          // if the max column width is too large, reset it to max allowed Column width
          max[j] = Math.min(Math.max(max[j], row.sizes[j] + 1), maxColumnWidth);
        }
        row.sizes = max;
      }
    }
  }
Rows implementation which buffers all rows
beeline/src/java/org/apache/hive/beeline/BufferedRows.java