Class AggregateTasks.Avg
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks2.AggregateTasks.Avg
- All Implemented Interfaces:
OptionalTask<Iterable<Entity>,
,BigDecimal> PersistTask<Iterable<Entity>,
,BigDecimal> AggregateTasks.AggregateTask<BigDecimal>
- Enclosing class:
AggregateTasks
public static class AggregateTasks.Avg
extends Object
implements OptionalTask<Iterable<Entity>,BigDecimal>, AggregateTasks.AggregateTask<BigDecimal>
Uses
AggregateTasks.Sum
and AggregateTasks.Count
to compute the average.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Iterable<Entity> input, CommandContext ctx) static PersistTask
<EntityList, BigDecimal> fromEntityList
(Path path) static PersistTask
<EntityList, BigDecimal> fromEntityList
(String path) static AggregateTasks.Avg
fromIterable
(Path path) static AggregateTasks.Avg
fromIterable
(String path) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
Avg
-
Avg
-
-
Method Details
-
fromEntityList
-
fromIterable
-
fromEntityList
-
fromIterable
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Iterable<Entity>,
BigDecimal> - Throws:
Exception
-
fromEntityList
- Specified by:
fromEntityList
in interfaceAggregateTasks.AggregateTask<BigDecimal>
-
toString
-