implicit final class RollupOps[U, D, R, M] extends AnyRef
- Source
- SCollectionSyntax.scala
- Alphabetic
- By Inheritance
- RollupOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RollupOps(self: SCollection[(U, D, R, M)])
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()
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 rollupAndCount(rollupFunction: (R) => Set[R])(implicit g: Group[M]): SCollection[((D, R), (M, Long))]
Takes an SCollection with elements consisting of three sets of dimensions and one measure and returns an SCollection tuple, where the key is a set of dimensions and the value the summed measure combined with a distinct count.
Takes an SCollection with elements consisting of three sets of dimensions and one measure and returns an SCollection tuple, where the key is a set of dimensions and the value the summed measure combined with a distinct count.
This is to be used when doing a count distinct for one key over a set of dimensions, when that key can be present in multiple elements in the final dataset, such that there is a need to provide additional rollups over the non-unique dimensions where distinct counts are not summable.
U - Unique key, this is what we want to count distinct occurrences of D - Dimensions that should not be rolled up (these are either unique per U or we are not expected to sum U over these dimensions, eg. a metric for different dates) R - Dimensions that should be rolled up M
- Additional measure that is summable over all dimensions
- rollupFunction
A function takes one element with dimensions of type R and returns a set of R with one element for each combination of rollups that we want to provide
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()