class SelectionTableSliceGroup extends TableSliceGroup {

  /**
   * Creates a TableSliceGroup where each slice contains {@code step} number of rows from the
   * backing table
   *
   * @param original The original backing table that provides the data for the new slice group
   * @param subTableNameTemplate The prefix of a name for each slice in the group. If the argument
   *     is "step" the name will take the form "step 1", "step 2", etc.
   * @param step The number of rows per slice
   * @return The new table
   */
  public static SelectionTableSliceGroup create(
      Table original, String subTableNameTemplate, int step) {
    return new SelectionTableSliceGroup(original, subTableNameTemplate, step);
  }

  private SelectionTableSliceGroup(Table original, String subTableNameTemplate, int step) {
    super(original);
    List<Selection> selections = new ArrayList<>();
    for (int i = 0; i < original.rowCount() - step; i += step) {
      Selection selection = new BitmapBackedSelection();
      selection.addRange(i, i + step);
      selections.add(selection);
    }
    splitOnSelection(subTableNameTemplate, selections);
  }

  private void splitOnSelection(String nameTemplate, List<Selection> selections) {<FILL_FUNCTION_BODY>}
}

    for (int i = 0; i < selections.size(); i++) {
      TableSlice view = new TableSlice(getSourceTable(), selections.get(i));
      String name = nameTemplate + ": " + i + 1;
      view.setName(name);
      getSlices().add(view);
    }
  
<methods>public transient tech.tablesaw.api.Table aggregate(java.lang.String, AggregateFunction<?,?>[]) ,public tech.tablesaw.api.Table aggregate(ListMultimap<java.lang.String,AggregateFunction<?,?>>) ,public static java.lang.String aggregateColumnName(java.lang.String, java.lang.String) ,public List<tech.tablesaw.api.Table> asTableList() ,public tech.tablesaw.table.TableSlice get(int) ,public List<tech.tablesaw.table.TableSlice> getSlices() ,public tech.tablesaw.api.Table getSourceTable() ,public Iterator<tech.tablesaw.table.TableSlice> iterator() ,public int size() ,public static tech.tablesaw.api.Table summaryTableName(tech.tablesaw.api.Table) <variables>private static final Splitter SPLITTER,protected static final java.lang.String SPLIT_STRING,private tech.tablesaw.api.Table sourceTable,private final non-sealed java.lang.String[] splitColumnNames,private final List<tech.tablesaw.table.TableSlice> subTables