- java.lang.Object
-
- org.scijava.ops.image.thread.chunker.DefaultChunker
-
- All Implemented Interfaces:
BiConsumer<Chunk,Long>,Inplaces.Arity2<Chunk,Long>,Inplaces.Arity2_1<Chunk,Long>
public class DefaultChunker extends Object implements Inplaces.Arity2_1<Chunk,Long>
Simple default implementation of athread.chunkerOp. The list of elements is chunked into equally sized (besides the last one), disjoint chunks, which are processed in parallel. The stepSize is set to one, i.e. each chunk consists of consecutive elements.- Author:
- Christian Dietz (University of Konstanz)
- Implementation Note:
- op names='thread.chunker'
-
-
Constructor Summary
Constructors Constructor Description DefaultChunker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmutate(Chunk chunk, Long numberOfElements)TODO-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface org.scijava.function.Inplaces.Arity2
accept
-
-
-
-
Method Detail
-
mutate
public void mutate(Chunk chunk, Long numberOfElements)
TODO- Specified by:
mutatein interfaceInplaces.Arity2<Chunk,Long>- Specified by:
mutatein interfaceInplaces.Arity2_1<Chunk,Long>- Parameters:
chunk-numberOfElements-
-
-