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
Constructors -
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.AvgfromIterable(Path path) static AggregateTasks.AvgfromIterable(String path) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
runMethods 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:
doRunin interfaceOptionalTask<Iterable<Entity>,BigDecimal> - Throws:
Exception
-
fromEntityList
- Specified by:
fromEntityListin interfaceAggregateTasks.AggregateTask<BigDecimal>
-
toString
-