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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AggSpecAbsSumabsSum()aggregation(Pair pair) Build aColumnAggregationfor this AggSpec.aggregation(Pair... pairs) aggregation(Collection<? extends Pair> pairs) static AggSpecApproximatePercentileapproximatePercentile(double percentile) static AggSpecApproximatePercentileapproximatePercentile(double percentile, double compression) static AggSpecAvgavg()static AggSpecCountDistinctstatic AggSpecCountDistinctcountDistinct(boolean countNulls) Get a simple description for this AggSpec.static AggSpecDistinctdistinct()static AggSpecDistinctdistinct(boolean includeNulls) static AggSpecFirstfirst()static AggSpecFormulaDeprecated.static AggSpecFreezefreeze()static AggSpecGroupgroup()static AggSpecLastlast()static AggSpecMaxmax()static AggSpecMedianmedian()static AggSpecMedianmedian(boolean averageEvenlyDivided) static AggSpecMinmin()static AggSpecPercentilepercentile(double percentile) static AggSpecPercentilepercentile(double percentile, boolean averageEvenlyDivided) static AggSpecSortedFirstsortedFirst(String... columns) static AggSpecSortedFirstsortedFirst(Collection<? extends String> columns) static AggSpecSortedLastsortedLast(String... columns) static AggSpecSortedLastsortedLast(Collection<? extends String> columns) static AggSpecStdstd()static AggSpecSumsum()static AggSpecTDigesttDigest()static AggSpecTDigesttDigest(double compression) static AggSpecUniqueunique()static AggSpecUniqueunique(boolean includeNulls, UnionObject nonUniqueSentinel) static AggSpecUniquestatic AggSpecVarvar()static voidvisitAll(AggSpec.Visitor visitor) Calls every single visit method ofvisitorwith anullobject.<V extends AggSpec.Visitor>
Vwalk(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor.static AggSpecWAvgstatic AggSpecWSum
-
Method Details
-
absSum
- Returns:
AggSpecAbsSum.of()
-
approximatePercentile
- Returns:
AggSpecApproximatePercentile.of(double)forpercentile
-
approximatePercentile
- Returns:
AggSpecApproximatePercentile.of(double, double)forpercentileandcompression
-
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)forformulaandparamToken
-
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)forpercentileandaverageEvenlyDivided
-
sortedFirst
- Returns:
AggSpecSortedFirstfor the supplied sortcolumns
-
sortedFirst
- Returns:
AggSpecSortedFirstfor the supplied sortcolumns
-
sortedLast
- Returns:
AggSpecSortedLastfor the supplied sortcolumns
-
sortedLast
- Returns:
AggSpecSortedLastfor 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)forincludeNullsandnonUniqueSentinel
-
unique
- Returns:
AggSpecUnique.of(boolean, UnionObject)forincludeNullsandnonUniqueSentinel
-
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 ofvisitorwith anullobject.- Parameters:
visitor- the visitor
-
aggregation
Build aColumnAggregationfor 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
-