GenericParMapTemplate

scala.collection.generic.GenericParMapTemplate
trait GenericParMapTemplate[K, +V, +CC <: (ParMap)] extends GenericParTemplate[(K, V), ParIterable]

Attributes

Graph
Supertypes
trait HasNewCombiner[(K, V), ParIterable[(K, V)]]
trait HasNewBuilder[(K, V), ParIterable[(K, V)]]
class Object
trait Matchable
class Any
Show all
Known subtypes
class ParHashMap[K, V]
trait ParMap[K, V]
class WithDefault[K, V]
class ParHashMap[K, V]
trait ParMap[K, V]
class WithDefault[K, V]
class ParTrieMap[K, V]
trait ParMap[K, V]
class WithDefault[A, B]
Show all

Members list

Value members

Abstract methods

Concrete methods

def genericMapCombiner[P, Q]: Combiner[(P, Q), CC[P, Q]]

Inherited methods

def flatten[B](implicit asTraversable: ((K, V)) => IterableOnce[B]): ParIterable[B]

Converts this collection of traversable collections into a collection formed by the elements of these traversable collections.

Converts this collection of traversable collections into a collection formed by the elements of these traversable collections.

Type parameters

B

the type of the elements of each traversable collection.

Value parameters

asTraversable

an implicit conversion which asserts that the element type of this collection is a GenTraversable.

Attributes

Returns

a new collection resulting from concatenating all element collections.

Inherited from:
GenericTraversableTemplate
override def genericBuilder[B]: Combiner[B, ParIterable[B]]

The generic builder that builds instances of $Coll at arbitrary element types.

The generic builder that builds instances of $Coll at arbitrary element types.

Attributes

Definition Classes
Inherited from:
GenericParTemplate

Attributes

Inherited from:
GenericParTemplate
def transpose[B](implicit asTraversable: ((K, V)) => IterableOnce[B]): ParIterable[ParIterable[B]]

Transposes this collection of traversable collections into a collection of collections.

Transposes this collection of traversable collections into a collection of collections.

The resulting collection's type will be guided by the static type of collection. For example:

  val xs = List(
             Set(1, 2, 3),
             Set(4, 5, 6)).transpose
  // xs == List(
  //         List(1, 4),
  //         List(2, 5),
  //         List(3, 6))

  val ys = Vector(
             List(1, 2, 3),
             List(4, 5, 6)).transpose
  // ys == Vector(
  //         Vector(1, 4),
  //         Vector(2, 5),
  //         Vector(3, 6))

Type parameters

B

the type of the elements of each traversable collection.

Value parameters

asTraversable

an implicit conversion which asserts that the element type of this collection is a Traversable.

Attributes

Returns

a two-dimensional collection of collections which has as ''n''th row the ''n''th column of this collection.

Throws
IllegalArgumentException

if all collections in this collection are not of the same size.

Inherited from:
GenericTraversableTemplate
def unzip[A1, A2](implicit asPair: ((K, V)) => (A1, A2)): (ParIterable[A1], ParIterable[A2])

Converts this collection of pairs into two collections of the first and second half of each pair.

Converts this collection of pairs into two collections of the first and second half of each pair.

  val xs = $Coll(
             (1, "one"),
             (2, "two"),
             (3, "three")).unzip
  // xs == ($Coll(1, 2, 3),
  //        $Coll(one, two, three))

Type parameters

A1

the type of the first half of the element pairs

A2

the type of the second half of the element pairs

Value parameters

asPair

an implicit conversion which asserts that the element type of this collection is a pair.

Attributes

Returns

a pair of collections, containing the first, respectively second half of each element pair of this collection.

Inherited from:
GenericTraversableTemplate
def unzip3[A1, A2, A3](implicit asTriple: ((K, V)) => (A1, A2, A3)): (ParIterable[A1], ParIterable[A2], ParIterable[A3])

Converts this collection of triples into three collections of the first, second, and third element of each triple.

Converts this collection of triples into three collections of the first, second, and third element of each triple.

  val xs = $Coll(
             (1, "one", '1'),
             (2, "two", '2'),
             (3, "three", '3')).unzip3
  // xs == ($Coll(1, 2, 3),
  //        $Coll(one, two, three),
  //        $Coll(1, 2, 3))

Type parameters

A1

the type of the first member of the element triples

A2

the type of the second member of the element triples

A3

the type of the third member of the element triples

Value parameters

asTriple

an implicit conversion which asserts that the element type of this collection is a triple.

Attributes

Returns

a triple of collections, containing the first, second, respectively third member of each element triple of this collection.

Inherited from:
GenericTraversableTemplate

Inherited and Abstract methods

The factory companion object that builds instances of class $Coll. (or its Iterable superclass where class $Coll is not a Seq.)

The factory companion object that builds instances of class $Coll. (or its Iterable superclass where class $Coll is not a Seq.)

Attributes

Inherited from:
GenericParTemplate
def foreach[U](f: ((K, V)) => U): Unit

Applies a function f to all elements of this collection.

Applies a function f to all elements of this collection.

Type parameters

U

the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

Value parameters

f

the function that is applied for its side-effect to every element. The result of function f is discarded.

Attributes

Inherited from:
GenericTraversableTemplate
def head: (K, V)

Selects the first element of this collection.

Selects the first element of this collection.

Attributes

Returns

the first element of this collection.

Throws
NoSuchElementException

if the collection is empty.

Inherited from:
GenericTraversableTemplate

Tests whether this collection is empty.

Tests whether this collection is empty.

Attributes

Returns

true if the collection contain no elements, false otherwise.

Inherited from:
GenericTraversableTemplate
def seq: Iterable[(K, V)]

A sequential collection containing the same elements as this collection

A sequential collection containing the same elements as this collection

Attributes

Inherited from:
GenericTraversableTemplate