object MapAlgebra
- Alphabetic
- By Inheritance
- MapAlgebra
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cube[K, V](it: TraversableOnce[(K, V)])(implicit c: Cuber[K]): Map[K, List[V]]
- def cubeAggregate[T, K, U, V](it: TraversableOnce[T], agg: Aggregator[T, U, V])(fn: (T) => K)(implicit c: Cuber[K]): Map[K, V]
- def cubeSum[K, V](it: TraversableOnce[(K, V)])(implicit c: Cuber[K], sg: Semigroup[V]): Map[K, V]
- def dot[K, V](left: Map[K, V], right: Map[K, V])(implicit mring: Ring[Map[K, V]], mon: Monoid[V]): V
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def group[K, V](pairs: TraversableOnce[(K, V)]): Map[K, List[V]]
For each key, creates a list of all values.
For each key, creates a list of all values. This function is equivalent to:
pairs.groupBy(_._1).mapValues(_.map(_._2))
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invert[K, V](m: Map[K, V]): Map[V, Set[K]]
Invert the Common case of exactly one value for each key
- def invertExact[K, V](m: Map[Option[K], Set[V]]): Map[Option[V], Set[K]]
Reverses a graph losslessly None key is for v's with no sources.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def join[K, V, W](map1: Map[K, V], map2: Map[K, W]): Map[K, (Option[V], Option[W])]
join the keys of two maps (similar to outer-join in a DB)
- def mergeLookup[T, U, V](keys: TraversableOnce[T])(lookup: (T) => Option[V])(present: (T) => U)(implicit arg0: Monoid[V]): Map[U, V]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def removeZeros[K, V](m: Map[K, V])(implicit arg0: Monoid[V]): Map[K, V]
- def rightContainsLeft[K, V](l: Map[K, V], r: Map[K, V])(implicit arg0: Equiv[V]): Boolean
- def rollup[K, V](it: TraversableOnce[(K, V)])(implicit r: Roller[K]): Map[K, List[V]]
- def rollupAggregate[T, K, U, V](it: TraversableOnce[T], agg: Aggregator[T, U, V])(fn: (T) => K)(implicit r: Roller[K]): Map[K, V]
- def rollupSum[K, V](it: TraversableOnce[(K, V)])(implicit r: Roller[K], sg: Semigroup[V]): Map[K, V]
- implicit def sparseEquiv[K, V](implicit arg0: Monoid[V], arg1: Equiv[V]): Equiv[Map[K, V]]
- def sumByKey[K, V](pairs: TraversableOnce[(K, V)])(implicit arg0: Semigroup[V]): Map[K, V]
For each key, sum all the values.
For each key, sum all the values. Note that if V is a Monoid, the current implementation will drop from the output any key where the values are all Monoid.zero. If the Semigroup is a Monoid, This function is equivalent to:
pairs.filter(_._2 != Monoid.zero).groupBy(_._1).mapValues(_.map(_._2).sum)
Otherwise, the function is equivalent to:
pairs.groupBy(_._1).mapValues(_.map(_._2).sum)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toGraph[K, V](pairs: TraversableOnce[(K, V)]): Map[K, Set[V]]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()