public interface Agg extends AggOrCompoundAgg
agg
or compoundAgg
methodsModifier and Type | Method and Description |
---|---|
static Agg |
accumulator(RamaAccumulatorAgg0 accumulator)
Use a custom accumulator of zero arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg1 accumulator,
java.lang.Object arg0)
Use a custom accumulator of one argument as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg2 accumulator,
java.lang.Object arg0,
java.lang.Object arg1)
Use a custom accumulator of two arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg3 accumulator,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Use a custom accumulator of three arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg4 accumulator,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Use a custom accumulator of four arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg5 accumulator,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Use a custom accumulator of five arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg6 accumulator,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Use a custom accumulator of six arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg7 accumulator,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Use a custom accumulator of seven arguments as an aggregator.
|
static Agg |
accumulator(RamaAccumulatorAgg8 accumulator,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6,
java.lang.Object arg7)
Use a custom accumulator of eight arguments as an aggregator.
|
static Agg |
and(java.lang.Object arg)
Applies "and" operator to all input.
|
static Agg |
average(java.lang.Object arg)
Averages input into a java.lang.Long.
|
Agg |
captureNewValInto(java.lang.String var)
Captures updated value of aggregated location into var for post-agg phase of a batch block.
|
static Agg |
combiner(RamaCombinerAgg combiner,
java.lang.Object arg)
Use a custom combiner as an aggregator
|
static Agg |
count()
Counts input into a java.lang.Long
|
static Agg |
first(java.lang.Object arg)
Aggregates input to the first input seen
|
static Agg |
last(java.lang.Object arg)
Aggregates input to the last input seen
|
static Agg |
list(java.lang.Object arg)
Aggregates all input to a java.util.List
data structure.
|
static Agg |
map(java.lang.Object argKey,
java.lang.Object argVal)
Aggregates all input to a java.util.Map
data structure.
|
static Agg |
max(java.lang.Object arg)
Computes maximum value from input
|
static Agg |
mergeMap(java.lang.Object arg)
Aggregates input java.util.Maps together into a single java.util.Map by adding all key/value pairs of each input.
|
static Agg |
min(java.lang.Object arg)
Computes minimum value from input
|
static Agg |
multiSet(java.lang.Object arg)
Aggregates input values into a java.util.Map
from value to count
|
static Agg |
or(java.lang.Object arg)
Applies "or" operator to all input.
|
static Agg |
set(java.lang.Object arg)
Aggregates all input to a java.util.Set
data structure.
|
static Agg |
setRemove(java.lang.Object arg)
Aggregates to "void" value for the given java.util.Set
element.
|
static Agg |
sum(java.lang.Object arg)
Sums input values into a java.lang.Long
|
static TopMonotonicAgg |
topMonotonic(int amt,
java.lang.String var)
Aggregates input into a list of top elements.
|
static Agg |
voided()
Aggregates to "void" value.
|
Agg captureNewValInto(java.lang.String var)
compoundAgg
and only usable in batch blocks
in microbatch topologies.var
- Var to capturestatic Agg sum(java.lang.Object arg)
arg
- Value or var inputstatic Agg count()
static Agg average(java.lang.Object arg)
arg
- Value or var inputstatic Agg max(java.lang.Object arg)
arg
- Value or var inputstatic Agg min(java.lang.Object arg)
arg
- Value or var inputstatic Agg or(java.lang.Object arg)
arg
- Value or var inputstatic Agg and(java.lang.Object arg)
arg
- Value or var inputstatic Agg voided()
static Agg list(java.lang.Object arg)
arg
- Value or var inputstatic Agg set(java.lang.Object arg)
arg
- Value or var inputstatic Agg map(java.lang.Object argKey, java.lang.Object argVal)
argKey
- Value or var input for the key of an entryargVal
- Value or var input for the value of an entrystatic Agg mergeMap(java.lang.Object arg)
arg
- Value or var input that must be a java.util.Mapstatic Agg setRemove(java.lang.Object arg)
static Agg multiSet(java.lang.Object arg)
arg
- Value or var inputstatic Agg last(java.lang.Object arg)
arg
- Value or var inputstatic Agg first(java.lang.Object arg)
arg
- Value or var inputstatic TopMonotonicAgg topMonotonic(int amt, java.lang.String var)
amt
- Number of elements to computevar
- Var inputstatic Agg combiner(RamaCombinerAgg combiner, java.lang.Object arg)
combiner
- Custom combiner implementationarg
- Value or var inputstatic Agg accumulator(RamaAccumulatorAgg0 accumulator)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg1 accumulator, java.lang.Object arg0)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg2 accumulator, java.lang.Object arg0, java.lang.Object arg1)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg3 accumulator, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg4 accumulator, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg5 accumulator, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg6 accumulator, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg7 accumulator, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
accumulator
- Custom accumulator implementationstatic Agg accumulator(RamaAccumulatorAgg8 accumulator, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6, java.lang.Object arg7)
accumulator
- Custom accumulator implementation