Class TaskCollectors.LastOfCollector<T>
java.lang.Object
com.oracle.coherence.concurrent.executor.AbstractCollector<T,T>
com.oracle.coherence.concurrent.executor.TaskCollectors.LastOfCollector<T>
- Type Parameters:
T
- the type of result
- All Implemented Interfaces:
Task.Collector<T,
,List<T>, T> ExternalizableLite
,PortableObject
,Serializable
- Enclosing class:
TaskCollectors
public static class TaskCollectors.LastOfCollector<T>
extends com.oracle.coherence.concurrent.executor.AbstractCollector<T,T>
A
Task.Collector
that collects and returns the last contributed result.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinisher()
Perform the final transformation from the intermediate accumulation type A to the final result type R.void
Restore the contents of a user type instance by reading its state using the specified PofReader object.void
writeExternal
(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.Methods inherited from class com.oracle.coherence.concurrent.executor.AbstractCollector
accumulator, finishable, supplier
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.io.ExternalizableLite
readExternal, writeExternal
-
Constructor Details
-
LastOfCollector
public LastOfCollector()
-
-
Method Details
-
finisher
Description copied from interface:Task.Collector
Perform 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
Description copied from interface:PortableObject
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Parameters:
in
- the PofReader from which to read the object's state- Throws:
IOException
- if an I/O error occurs
-
writeExternal
Description copied from interface:PortableObject
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Parameters:
out
- the PofWriter to which to write the object's state- Throws:
IOException
- if an I/O error occurs
-