Package io.deephaven.api.agg.spec
Interface AggSpec
- All Known Implementing Classes:
AggSpecAbsSum
,AggSpecApproximatePercentile
,AggSpecAvg
,AggSpecBase
,AggSpecCountDistinct
,AggSpecDistinct
,AggSpecEmptyBase
,AggSpecFirst
,AggSpecFormula
,AggSpecFreeze
,AggSpecGroup
,AggSpecLast
,AggSpecMax
,AggSpecMedian
,AggSpecMin
,AggSpecPercentile
,AggSpecSortedFirst
,AggSpecSortedLast
,AggSpecStd
,AggSpecSum
,AggSpecTDigest
,AggSpecUnique
,AggSpecVar
,AggSpecWAvg
,AggSpecWSum
public interface AggSpec
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AggSpecAbsSum
absSum()
aggregation
(Pair pair) Build aColumnAggregation
for this AggSpec.aggregation
(Pair... pairs) aggregation
(Collection<? extends Pair> pairs) static AggSpecApproximatePercentile
approximatePercentile
(double percentile) static AggSpecApproximatePercentile
approximatePercentile
(double percentile, double compression) static AggSpecAvg
avg()
static AggSpecCountDistinct
static AggSpecCountDistinct
countDistinct
(boolean countNulls) Get a simple description for this AggSpec.static AggSpecDistinct
distinct()
static AggSpecDistinct
distinct
(boolean includeNulls) static AggSpecFirst
first()
static AggSpecFormula
Deprecated.static AggSpecFreeze
freeze()
static AggSpecGroup
group()
static AggSpecLast
last()
static AggSpecMax
max()
static AggSpecMedian
median()
static AggSpecMedian
median
(boolean averageEvenlyDivided) static AggSpecMin
min()
static AggSpecPercentile
percentile
(double percentile) static AggSpecPercentile
percentile
(double percentile, boolean averageEvenlyDivided) static AggSpecSortedFirst
sortedFirst
(String... columns) static AggSpecSortedFirst
sortedFirst
(Collection<? extends String> columns) static AggSpecSortedLast
sortedLast
(String... columns) static AggSpecSortedLast
sortedLast
(Collection<? extends String> columns) static AggSpecStd
std()
static AggSpecSum
sum()
static AggSpecTDigest
tDigest()
static AggSpecTDigest
tDigest
(double compression) static AggSpecUnique
unique()
static AggSpecUnique
unique
(boolean includeNulls, UnionObject nonUniqueSentinel) static AggSpecUnique
static AggSpecVar
var()
static void
visitAll
(AggSpec.Visitor visitor) Calls every single visit method ofvisitor
with anull
object.<V extends AggSpec.Visitor>
Vwalk
(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor
.static AggSpecWAvg
static AggSpecWSum
-
Method Details
-
absSum
- Returns:
AggSpecAbsSum.of()
-
approximatePercentile
- Returns:
AggSpecApproximatePercentile.of(double)
forpercentile
-
approximatePercentile
- Returns:
AggSpecApproximatePercentile.of(double, double)
forpercentile
andcompression
-
avg
- Returns:
AggSpecAvg.of()
-
countDistinct
-
countDistinct
- Returns:
AggSpecCountDistinct.of(boolean)
forcountNulls
-
distinct
- Returns:
AggSpecDistinct.of()
-
distinct
- Returns:
AggSpecDistinct.of(boolean)
forincludeNulls
-
first
- Returns:
AggSpecFirst.of()
-
formula
Deprecated.- Returns:
AggSpecFormula.of(String, String)
forformula
andparamToken
-
freeze
- Returns:
AggSpecFreeze.of()
-
group
- Returns:
AggSpecGroup.of()
-
last
- Returns:
AggSpecLast.of()
-
max
- Returns:
AggSpecMax.of()
-
median
- Returns:
AggSpecMedian.of()
-
median
- Returns:
AggSpecMedian.of(boolean)
foraverageEvenlyDivided
-
min
- Returns:
AggSpecMin.of()
-
percentile
- Returns:
AggSpecPercentile.of(double)
forpercentile
-
percentile
- Returns:
AggSpecPercentile.of(double, boolean)
forpercentile
andaverageEvenlyDivided
-
sortedFirst
- Returns:
AggSpecSortedFirst
for the supplied sortcolumns
-
sortedFirst
- Returns:
AggSpecSortedFirst
for the supplied sortcolumns
-
sortedLast
- Returns:
AggSpecSortedLast
for the supplied sortcolumns
-
sortedLast
- Returns:
AggSpecSortedLast
for the supplied sortcolumns
-
std
- Returns:
AggSpecStd.of()
-
sum
- Returns:
AggSpecSum.of()
-
tDigest
- Returns:
AggSpecTDigest.of()
-
tDigest
- Returns:
AggSpecTDigest.of(double)
forcompression
-
unique
- Returns:
AggSpecUnique.of()
-
unique
- Returns:
AggSpecUnique.of(boolean, Object)
forincludeNulls
andnonUniqueSentinel
-
unique
- Returns:
AggSpecUnique.of(boolean, UnionObject)
forincludeNulls
andnonUniqueSentinel
-
var
- Returns:
AggSpecVar.of()
-
wavg
- Returns:
AggSpecWAvg.of(ColumnName)
for the suppliedweightColumn
-
wsum
- Returns:
AggSpecWSum.of(ColumnName)
for the suppliedweightColumn
-
visitAll
Calls every single visit method ofvisitor
with anull
object.- Parameters:
visitor
- the visitor
-
aggregation
Build aColumnAggregation
for this AggSpec.- Parameters:
pair
- The input/output column name pair- Returns:
- The aggregation
-
aggregation
- Parameters:
pairs
- The input/output column name pairs- Returns:
- The aggregation
-
aggregation
- Parameters:
pairs
- The input/output column name pairs- Returns:
- The aggregation
-
description
String description()Get a simple description for this AggSpec.- Returns:
- The description
-
walk
Glue method to deliver this AggSpec to aAggSpec.Visitor
.- Parameters:
visitor
- The visitor- Returns:
- The visitor
-