| Modifier and Type | Method and Description |
|---|---|
static Aggregate |
Table.count(int index)
Returns count aggregation with only valid values.
|
static Aggregate |
Table.count(int index,
boolean include_nulls)
Returns count aggregation
|
static Aggregate |
Table.first(int index,
boolean includeNulls)
Returns first aggregation.
|
static Aggregate |
Table.last(int index,
boolean includeNulls)
Returns last aggregation.
|
static Aggregate |
Table.max(int index)
Returns max aggregation.
|
static Aggregate |
Table.mean(int index)
Returns mean aggregation.
|
static Aggregate |
Table.median(int index)
Returns median aggregation.
|
static Aggregate |
Table.min(int index)
Returns min aggregation.
|
static Aggregate |
Table.sum(int index)
Returns sum aggregation.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
Table.AggregateOperation.aggregate(Aggregate... aggregates)
Aggregates the group of columns represented by indices
Usage:
aggregate(count(), max(2),...);
example:
input : 1, 1, 1
1, 2, 1
2, 4, 5
table.groupBy(0, 2).count()
col0, col1
output: 1, 1
1, 2
2, 1 ==> aggregated count
|
Copyright © 2020. All rights reserved.