MapDecorator
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Alias for mergeByKey
Alias for mergeByKey
Attributes
Alias for zipByKey
Alias for zipByKey
Attributes
Perform a left outer join of this
and that
.
Perform a left outer join of this
and that
.
Equivalent to mergeByKeyWith(that) { case (Some(v), maybeW) => (v, maybeW) }
.
Attributes
- That
Type of the resulting collection
- W
Type of values of
that
- bf
Builder for the resulting collection
- Returns:
A Map that associates all the keys
k
ofthis
to pairs(v, Some(w))
ifthat
associatesk
tow
, or(v, None)
ifthat
doesn’t containk
Perform a full outer join of this
and that
.
Perform a full outer join of this
and that
.
Equivalent to mergeByKeyWith(that) { case any => any }
.
Attributes
- That
Type of the resulting collection (e.g.
Map[Int, (Option[Boolean], Option[String])]
)- W
Type of values of
that
(e.g.String
)- bf
Builder for the resulting collection
- Returns:
A Map that associates all the keys
k
ofthis
orthat
to pairs(Some(v), Some(w))
ifthis
associatesk
tov
andthat
associatesk
tow
, or pairs(None, Some(w))
ifthis
doesn’t containk
, or pairs(Some(v), None)
ifthat
doesn’t containk
Attributes
- That
Type of the result (e.g.
Map[Int, (String, Option[Boolean])]
)- W
Type of values of the other Map (e.g.
Int
,String
)- X
Type of values of the resulting Map
- bf
Builder driven by the type of
this
Map- f
Combination function
- other
Map to merge
- Returns:
A Map associating all the keys from
this
andthat
with values returned by the partial functionf
, when this one is defined.
Perform a right outer join of this
and that
.
Perform a right outer join of this
and that
.
Equivalent to mergeByKeyWith(that) { case (maybeV, Some(w)) => (maybeV, w) }
.
Attributes
- That
Type of the resulting collection (e.g.
Map[Int, (Option[Boolean], String)]
)- W
Type of values of
that
(e.g.String
)- bf
Builder for the resulting collection
- Returns:
A Map that associates all the keys
k
ofthat
to pairs(Some(v), w)
ifthis
associatesk
tov
, or(None, w)
ifthis
doesn’t containk
Combines the entries of this
Map with the entries of that
Map that have the same key,
tupling their values. xs.zipByKey(ys)
is a shorthand for xs.zipByKeyWith(ys)((_, _))
.
Combines the entries of this
Map with the entries of that
Map that have the same key,
tupling their values. xs.zipByKey(ys)
is a shorthand for xs.zipByKeyWith(ys)((_, _))
.
Attributes
- That
Type of the result (e.g.
Map[Int, (String, Boolean)]
,TreeMap[String, (Int, Int)]
)- W
Type of values of the other Map (e.g.
Int
,String
)- bf
Builder driven by the type of
this
Map- other
Other Map
- Returns:
A Map that associates all the keys
k
contained by boththis
andthat
to pairs(v, w)
wherev
is the value associated bythis
tok
andw
the value associated bythat
tok
Combines entries of this
Map with entries of that
Map that have the same key,
using the combination function f
Combines entries of this
Map with entries of that
Map that have the same key,
using the combination function f
Attributes
- That
Type of the resulting Map
- W
Type of values of the other Map (e.g.
Int
,String
)- X
Type of values of the resulting Map
- bf
Builder driven by the type of
this
Map- f
Combination function
- other
Other Map
- Returns:
A Map that associates all the keys
k
contained by boththis
andthat
to the result of the application off
to the valuesv
andw
respectively associated bythis
andthat
tok