Iterable<TableSlice>
SelectionTableSliceGroup
, StandardTableSliceGroup
public class TableSliceGroup extends Object implements Iterable<TableSlice>
Modifier and Type | Field | Description |
---|---|---|
protected static String |
SPLIT_STRING |
Modifier | Constructor | Description |
---|---|---|
protected |
TableSliceGroup(Table original) |
Returns an instance for calculating a single summary for the given table, with no sub-groupings
|
protected |
TableSliceGroup(Table sourceTable,
String[] groupColumnNames) |
Returns an instance for calculating subgroups, one for each combination of the given
groupColumnNames that appear in the source table
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
addSlice(TableSlice slice) |
|
Table |
aggregate(com.google.common.collect.ListMultimap<String,AggregateFunction<?,?>> functions) |
Applies the given aggregations to the given columns.
|
Table |
aggregate(String colName1,
AggregateFunction<?,?>... functions) |
Applies the given aggregation to the given column.
|
static String |
aggregateColumnName(String columnName,
String functionName) |
Returns a column name for aggregated data based on the given source column name and function
|
List<Table> |
asTableList() |
Returns a list of Tables created by reifying my list of slices (views) over the original table
|
TableSlice |
get(int i) |
|
protected int |
getByteSize(List<Column<?>> columns) |
|
List<TableSlice> |
getSlices() |
|
Table |
getSourceTable() |
|
protected String[] |
getSplitColumnNames() |
|
Iterator<TableSlice> |
iterator() |
Returns an iterator over elements of type
T . |
protected void |
setSourceTable(Table sourceTable) |
|
int |
size() |
Returns the number of slices
|
static Table |
summaryTableName(Table source) |
forEach, spliterator
protected static final String SPLIT_STRING
protected TableSliceGroup(Table original)
protected String[] getSplitColumnNames()
protected void addSlice(TableSlice slice)
public List<TableSlice> getSlices()
public TableSlice get(int i)
public Table getSourceTable()
public int size()
public Table aggregate(String colName1, AggregateFunction<?,?>... functions)
public Table aggregate(com.google.common.collect.ListMultimap<String,AggregateFunction<?,?>> functions)
functions
- map from column name to aggregation to apply on that functionpublic Iterator<TableSlice> iterator()
T
.iterator
in interface Iterable<TableSlice>
public static String aggregateColumnName(String columnName, String functionName)
public List<Table> asTableList()
protected void setSourceTable(Table sourceTable)
Copyright © 2021. All rights reserved.