public static class IteratorAsSpliterator.Builder<T> extends Object implements Supplier<IteratorAsSpliterator<T>>
Constructor and Description |
---|
Builder(CloseableIterator<? extends T> closeableIterator) |
Builder(Iterator<? extends T> iterator) |
Modifier and Type | Method and Description |
---|---|
IteratorAsSpliterator<T> |
get() |
IteratorAsSpliterator.Builder<T> |
setBatchIncrease(int batchIncrease)
Sets the batch increase size.
|
IteratorAsSpliterator.Builder<T> |
setCharacteristics(int characteristics)
Sets the characteristics the subsequent spliterator will have.
|
IteratorAsSpliterator.Builder<T> |
setEstimateRemaining(long estimateRemaining)
Sets how many estimated elements are remaining for this iterator
This defaults to Long.MAX_VALUE.
|
IteratorAsSpliterator.Builder |
setMaxBatchSize(int maxBatchSize)
Sets the max batch size for a thread to use - This defaults to 51200
|
public Builder(CloseableIterator<? extends T> closeableIterator)
public IteratorAsSpliterator.Builder<T> setCharacteristics(int characteristics)
characteristics
- public IteratorAsSpliterator.Builder<T> setBatchIncrease(int batchIncrease)
batchIncrease
- public IteratorAsSpliterator.Builder setMaxBatchSize(int maxBatchSize)
maxBatchSize
- public IteratorAsSpliterator.Builder<T> setEstimateRemaining(long estimateRemaining)
estimateRemaining
- public IteratorAsSpliterator<T> get()
get
in interface Supplier<IteratorAsSpliterator<T>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.