docs: public static Integer getValidMaxRowsPerSegment(IndexTuningConfig tuningConfig)
    {
      @Nullable final Integer numShards = tuningConfig.numShards;
      @Nullable final Integer maxRowsPerSegment = tuningConfig.maxRowsPerSegment;
      if (numShards == null || numShards == -1) {
        return maxRowsPerSegment == null || maxRowsPerSegment.equals(-1)
               ? IndexTuningConfig.DEFAULT_MAX_ROWS_PER_SEGMENT
               : maxRowsPerSegment;
      } else {
        return null;
      }
    }