TableSliceGroup implements Iterable<TableSlice> { public List<TableSlice> getSlices() { return subTables; } protected  TableSliceGroup(Table original); protected  TableSliceGroup(Table sourceTable, String[] groupColumnNames); List<TableSlice> getSlices(); TableSlice get(int i); Table getSourceTable(); int size(); Table aggregate(String colName1, AggregateFunction<?, ?>... functions); @SuppressWarnings({"unchecked", "rawtypes"}) Table aggregate(ListMultimap<String, AggregateFunction<?, ?>> functions); static Table summaryTableName(Table source); @Override Iterator<TableSlice> iterator(); static String aggregateColumnName(String columnName, String functionName); List<Table> asTableList();  }
@Test public void testViewTwoColumn() { TableSliceGroup group = StandardTableSliceGroup.create( table, table.categoricalColumn("who"), table.categoricalColumn("approval")); List<TableSlice> viewList = group.getSlices(); int count = 0; for (TableSlice view : viewList) { count += view.rowCount(); } assertEquals(table.rowCount(), count); }