ParVectorIterator
Attributes
- Graph
-
- Supertypes
-
trait SeqSplitter[T]trait PreciseSplitter[T]trait IterableSplitter[T]trait DelegatedSignallingtrait Signallingtrait Splitter[T]class AbstractIterator[T]trait Iterator[T]trait IterableOnce[T]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- IterableSplitter
- Supertypes
-
trait IterableSplitter[U]trait DelegatedSignallingtrait Signallingtrait Splitter[U]trait Iterator[U]trait IterableOnce[U]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Attributes
- Inherited from:
- Iterator
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- IterableSplitter
- Supertypes
-
trait IterableSplitter[S]trait DelegatedSignallingtrait Signallingtrait Splitter[S]trait Iterator[S]trait IterableOnce[S]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class RemainsIteratorMapped[S]
Attributes
- Inherited from:
- SeqSplitter
- Supertypes
-
trait SeqSplitter[U]trait PreciseSplitter[U]trait IterableSplitter[U]trait DelegatedSignallingtrait Signallingtrait Splitter[U]trait Iterator[U]trait IterableOnce[U]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- SeqSplitter
- Supertypes
-
trait SeqSplitter[U]trait PreciseSplitter[U]trait IterableSplitter[U]trait DelegatedSignallingtrait Signallingtrait Splitter[U]trait Iterator[U]trait IterableOnce[U]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- SeqSplitter
- Supertypes
-
trait SeqSplitter[S]trait PreciseSplitter[S]class Mapped[S]trait IterableSplitter[S]trait DelegatedSignallingtrait Signallingtrait Splitter[S]trait Iterator[S]trait IterableOnce[S]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- SeqSplitter
- Supertypes
-
trait SeqSplitter[T]trait PreciseSplitter[T]class Takentrait IterableSplitter[T]trait DelegatedSignallingtrait Signallingtrait Splitter[T]trait Iterator[T]trait IterableOnce[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- SeqSplitter
- Supertypes
-
class Zipped[S]trait DelegatedSignallingtrait Signallingclass Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- SeqSplitter
- Supertypes
Attributes
- Inherited from:
- IterableSplitter
- Supertypes
-
trait IterableSplitter[T]trait DelegatedSignallingtrait Signallingtrait Splitter[T]trait Iterator[T]trait IterableOnce[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class RemainsIteratorTaken
Attributes
- Inherited from:
- IterableSplitter
- Supertypes
- Known subtypes
-
class RemainsIteratorZipped[S]
Attributes
- Inherited from:
- IterableSplitter
- Supertypes
- Known subtypes
-
Value members
Concrete methods
Creates a copy of this iterator.
Creates a copy of this iterator.
Attributes
Splits the splitter into disjunct views.
Splits the splitter into disjunct views.
This overloaded version of the split
method is specific to precise splitters. It returns a sequence of splitters, each iterating some subset of the elements in this splitter. The sizes of the subsplitters in the partition is equal to the size in the corresponding argument, as long as there are enough elements in this splitter to split it that way.
If there aren't enough elements, a zero element splitter is appended for each additional argument. If there are additional elements, an additional splitter is appended at the end to compensate.
For example, say we have a splitter ps
with 100 elements. Invoking:
ps.split(50, 25, 25, 10, 5)
will return a sequence of five splitters, last two views being empty. On the other hand, calling:
ps.split(50, 40)
will return a sequence of three splitters, last of them containing ten elements.
'''Note:''' this method actually invalidates the current splitter.
Unlike the case with split
found in splitters, views returned by this method can be empty.
Value parameters
- sizes
-
the sizes used to split this split iterator into iterators that traverse disjunct subsets
Attributes
- Returns
-
a sequence of disjunct subsequence iterators of this parallel iterator
The number of elements this iterator has yet to traverse. This method doesn't change the state of the iterator. Unlike the version of this method in the supertrait, method remaining
in ParSeqLike.this.ParIterator
must return an exact number of elements remaining in the iterator.
The number of elements this iterator has yet to traverse. This method doesn't change the state of the iterator. Unlike the version of this method in the supertrait, method remaining
in ParSeqLike.this.ParIterator
must return an exact number of elements remaining in the iterator.
Attributes
- Returns
-
an exact number of elements this iterator has yet to iterate
Splits the iterator into a sequence of disjunct views.
Splits the iterator into a sequence of disjunct views.
Returns a sequence of split iterators, each iterating over some subset of the elements in the collection. These subsets are disjoint and should be approximately equal in size. These subsets are not empty, unless the iterator is empty in which case this method returns a sequence with a single empty iterator. If the splitter has more than two elements, this method will return two or more splitters.
Implementors are advised to keep this partition relatively small - two splitters are already enough when partitioning the collection, although there may be a few more.
'''Note:''' this method actually invalidates the current splitter.
Attributes
- Returns
-
a sequence of disjunct iterators of the collection
Inherited methods
Sends an abort signal to other workers.
Sends an abort signal to other workers.
Abort flag being true means that a worker can abort and produce whatever result, since its result will not affect the final result of computation. An example of operations using this are find
, forall
and exists
methods.
Attributes
- Inherited from:
- DelegatedSignalling
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableSplitter
Attributes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- IterableSplitter
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- Iterator
Drop implemented as simple eager consumption.
Drop implemented as simple eager consumption.
Attributes
- Definition Classes
- Inherited from:
- IterableSplitter
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- VectorIterator (hidden)
Returns the value of the index flag.
Returns the value of the index flag.
The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile
operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile
, dropWhile
, span
and indexOf
.
Attributes
- Returns
-
the value of the index flag
- Inherited from:
- DelegatedSignalling
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Checks whether an abort signal has been issued.
Checks whether an abort signal has been issued.
Abort flag being true means that a worker can abort and produce whatever result, since its result will not affect the final result of computation. An example of operations using this are find
, forall
and exists
methods.
Attributes
- Returns
-
the state of the abort
- Inherited from:
- DelegatedSignalling
Attributes
- Definition Classes
- 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.
Attributes
- Inherited from:
- RemainsIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Attributes
- Definition Classes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- VectorIterator (hidden)
Attributes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- SeqSplitter
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Sets the value of the index flag.
Sets the value of the index flag.
The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile
operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile
, dropWhile
, span
and indexOf
.
Value parameters
- f
-
the value to which the index flag is set.
Attributes
- Inherited from:
- DelegatedSignalling
Sets the value of the index flag if argument is greater than current value. This method does this atomically.
Sets the value of the index flag if argument is greater than current value. This method does this atomically.
The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile
operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile
, dropWhile
, span
and indexOf
.
Value parameters
- f
-
the value to which the index flag is set
Attributes
- Inherited from:
- DelegatedSignalling
Sets the value of the index flag if argument is lesser than current value. This method does this atomically.
Sets the value of the index flag if argument is lesser than current value. This method does this atomically.
The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile
operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile
, dropWhile
, span
and indexOf
.
Value parameters
- f
-
the value to which the index flag is set
Attributes
- Inherited from:
- DelegatedSignalling
Attributes
- Inherited from:
- IterableSplitter
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Definition Classes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- IterableOnce
Attributes
- Definition Classes
-
AugmentedIterableIterator -> IterableOnceOps
- Inherited from:
- AugmentedIterableIterator (hidden)
A read only tag specific to the signalling object. It is used to give specific workers information on the part of the collection being operated on.
A read only tag specific to the signalling object. It is used to give specific workers information on the part of the collection being operated on.
Attributes
- Inherited from:
- DelegatedSignalling
Attributes
- Definition Classes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Definition Classes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- AugmentedSeqIterator (hidden)
Attributes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Inherited from:
- Iterator
Attributes
- Inherited from:
- AugmentedIterableIterator (hidden)
Attributes
- Definition Classes
- Inherited from:
- SeqSplitter
Attributes
- Definition Classes
- Inherited from:
- SeqSplitter
Attributes
- Inherited from:
- Iterator
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
hasDefiniteSize on Iterator is the same as isEmpty - Definition Classes
- Inherited from:
- Iterator
Attributes
- Deprecated
-
[Since version 2.13.0]
Call scanRight on an Iterable instead. - Inherited from:
- Iterator
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterator.seq always returns the iterator itself - Inherited from:
- Iterator
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Inherited fields
A delegate that method calls are redirected to.