Packages

implicit final class RollupOps[U, D, R, M] extends AnyRef

Source
SCollectionSyntax.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RollupOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RollupOps(self: SCollection[(U, D, R, M)])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. 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

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped