Packages

case class Buckets[T](bucketDelimiters: Array[T], itemsNumInBuckets: Array[Int])(implicit evidence$1: Ordering[T], evidence$2: Numeric[T]) extends Product with Serializable

Groups incoming values by user defined buckets. The bucket must be of type that supports ordering. User is not supposed to create the objects of this class directly, only by means of factory method.

T

the type of element in the bucket. Defines the type of delimiters of your buckets and the type of value that this accumulable will accumulate

bucketDelimiters

the delimiters of buckets as Array of Numeric. For example, given (1, 10, 100), four buckets will be created (-inf:1), [1:10), [10:100), [100:+inf)

itemsNumInBuckets

Array that contains the number of elements in bucket for each bucket

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Buckets
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Buckets(bucketDelimiters: Array[T], itemsNumInBuckets: Array[Int])(implicit arg0: Ordering[T], arg1: Numeric[T])

    bucketDelimiters

    the delimiters of buckets as Array of Numeric. For example, given (1, 10, 100), four buckets will be created (-inf:1), [1:10), [10:100), [100:+inf)

    itemsNumInBuckets

    Array that contains the number of elements in bucket for each bucket

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. def add(other: Buckets[T]): Buckets[T]
  5. def add(value: T): Unit
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val bucketDelimiters: Array[T]
  8. def canEqual(other: Any): Boolean
    Definition Classes
    Buckets → Equals
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(o: Any): Boolean
    Definition Classes
    Buckets → Equals → AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    Buckets → AnyRef → Any
  15. def isEmpty: Boolean
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val itemsNumInBuckets: Array[Int]
  18. def merge(other: Buckets[T]): Unit
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def reset(): Unit
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    Buckets → AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped