Class OperationAggregator<T,K,R>
java.lang.Object
com.inductiveautomation.ignition.common.util.OperationAggregator<T,K,R>
- All Implemented Interfaces:
Iterable<AggregationSet<T,
K, R>>
The OperationAggregator takes a set of objects, splits them up based on keys determined by a KeyProvider, and then
aggregates the results back together in the correct order, after some execution has occured.
Parameters: T - Request type K - Key type R - Result type
Usage:
Parameters: T - Request type K - Key type R - Result type
Usage:
- Create new aggregator with correct types.
- Call aggregator.put() with the input list, and a (usually anonymous) implementation of KeyProvider that returns the key for the given input.
- Iterate through the AggregationSet<T,K,R\> now contained in the aggregator, do something.
- Return aggregator.getResults()
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
static interface
The InputValidator provides a way to validate input values before they get to execution.static interface
protected class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
breakup
-
-
Constructor Details
-
OperationAggregator
public OperationAggregator()
-
-
Method Details