Class AggregateTasks
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks2.AggregateTasks
Collection of the 3 standard aggregation functions: avg, count and sum. The tasks work with either
EntityList
or Iterable<Entity>
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
AggregateTasks.AggregateTask<N extends Number>
static class
UsesAggregateTasks.Sum
andAggregateTasks.Count
to compute the average.static class
Returns the size of the given entity list.static class
static class
Uses a given field name to obtain the value of that field of each entity in the list to compute the sum.static class
Calculates the sum of the values returned when resolving the given path against each entity of the entity list. -
Method Summary