public class MemoryAwareParIterator<E> extends StaticParIterator<E>
ParIterator.Schedule
chunks, data, localChunkIterator, localChunks, localIterator
chunkSize, collection, exceptions, flags, ignoreBarrier, latch, numOfThreads, reclaimedElements, threadID
DEFAULT_CHUNKSIZE
Constructor and Description |
---|
MemoryAwareParIterator(java.util.Collection<E> collection,
int chunkSize,
int numOfThreads,
boolean ignoreBarrier) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<E> |
formatData(java.util.Collection<E> collection) |
forEachRemaining, hasNext, localBreak, next, reset
allOtherThreadsHaveLocalBreaked, getAllExceptions, getID, globalBreak, register, register, remove
public MemoryAwareParIterator(java.util.Collection<E> collection, int chunkSize, int numOfThreads, boolean ignoreBarrier)
protected java.util.List<E> formatData(java.util.Collection<E> collection)
formatData
in class StaticParIterator<E>