Class 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 a thread.chunker Op. 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'