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
- Alphabetic
- By Inheritance
- Buckets
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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
- def add(other: Buckets[T]): Buckets[T]
- def add(value: T): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bucketDelimiters: Array[T]
-
def
canEqual(other: Any): Boolean
- Definition Classes
- Buckets → Equals
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(o: Any): Boolean
- Definition Classes
- Buckets → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- Buckets → AnyRef → Any
- def isEmpty: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val itemsNumInBuckets: Array[Int]
- def merge(other: Buckets[T]): Unit
-
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 reset(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Buckets → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()