Class TaskCollectors.CountCollector<T>
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.AbstractCollector<T,Integer>
-
- com.oracle.coherence.concurrent.executor.TaskCollectors.CountCollector<T>
-
- Type Parameters:
T- the results type.
- All Implemented Interfaces:
Task.Collector<T,List<T>,Integer>,com.tangosol.io.ExternalizableLite,com.tangosol.io.pof.PortableObject,Serializable
- Enclosing class:
- TaskCollectors
public static class TaskCollectors.CountCollector<T> extends AbstractCollector<T,Integer>
ATask.Collectorthat counts the number of results are present.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CountCollector()Constructs aTaskCollectors.CountCollector(required for serialization).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<List<T>,Integer>finisher()Perform the final transformation from the intermediate accumulation type A to the final result type R.voidreadExternal(com.tangosol.io.pof.PofReader in)voidreadExternal(DataInput in)voidwriteExternal(com.tangosol.io.pof.PofWriter out)voidwriteExternal(DataOutput out)-
Methods inherited from class com.oracle.coherence.concurrent.executor.AbstractCollector
accumulator, finishable, supplier
-
-
-
-
Constructor Detail
-
CountCollector
public CountCollector()
Constructs aTaskCollectors.CountCollector(required for serialization).
-
-
Method Detail
-
finisher
public Function<List<T>,Integer> finisher()
Description copied from interface:Task.CollectorPerform the final transformation from the intermediate accumulation type A to the final result type R.- Returns:
- a function which transforms the intermediate result to the final result
-
readExternal
public void readExternal(DataInput in) throws IOException
- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Throws:
IOException
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Throws:
IOException
-
-