IterableSplitter
Parallel iterators allow splitting and provide a remaining
method to
obtain the number of elements remaining in the iterator.
Parallel iterators allow splitting and provide a remaining
method to
obtain the number of elements remaining in the iterator.
- Type Params
- T
type of the elements iterated.
Type members
Classlikes
Inherited classlikes
Value members
Abstract methods
The number of elements this iterator has yet to traverse. This method doesn't change the state of the iterator.
The number of elements this iterator has yet to traverse. This method doesn't change the state of the iterator.
This method is used to provide size hints to builders and combiners, and to approximate positions of iterators within a data structure.
'''Note''': This method may be implemented to return an upper bound on the number of elements in the iterator, instead of the exact number of elements to iterate. Parallel collections which have such iterators are called non-strict-splitter collections.
In that case, 2 considerations must be taken into account:
-
classes that inherit
ParIterable
must reimplement methodstake
,drop
,slice
,splitAt
,copyToArray
and all others using this information. -
if an iterator provides an upper bound on the number of elements, then after splitting the sum of
remaining
values of split iterators must be less than or equal to this upper bound.
Concrete methods
Drop implemented as simple eager consumption.
Drop implemented as simple eager consumption.
- Definition Classes
- Iterator -> IterableOnceOps
Inherited methods
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOnceOps
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Definition Classes
- Iterator -> IterableOnceOps
- Inherited from
- Iterator
For most collections, this is a cheap operation. Exceptions can override this method.
For most collections, this is a cheap operation. Exceptions can override this method.
- Inherited from
- RemainsIterator
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Inherited from
- Iterator
- Inherited from
- IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
- Definition Classes
- AugmentedIterableIterator -> IterableOnceOps
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
- Inherited from
- AugmentedIterableIterator
Deprecated and Inherited methods
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Definition Classes
- Iterator -> IterableOnceOps
- Inherited from
- Iterator
- Deprecated
- Inherited from
- Iterator
- Deprecated
- Inherited from
- IterableOnceOps