kumulant

HeavyHittersResult

@Serializable
@SerialName(value = "HeavyHittersResult")
data class HeavyHittersResult(val capacity: Int, val keys: LongArray, val counts: LongArray, val errors: LongArray, val totalSeen: Long) : HasObservationCount(source)

Space-Saving heavy-hitters snapshot. keys, counts, errors are parallel arrays of length <= capacity; for each tracked key, counts is the (over)estimated weighted count and errors is the Space-Saving overestimate bound (the count is at most this much above the true count). totalSeen is the unweighted update count.

Constructors

HeavyHittersResult

constructor(capacity: Int, keys: LongArray, counts: LongArray, errors: LongArray, totalSeen: Long)(source)

Properties

capacity

counts

errors

keys

totalSeen

totalWeights

open override val totalWeights: Double(source)

Cumulative weight of observations folded into this result.

Link copied to clipboard
open val isEmpty: Boolean

True when no observation has been folded in, so every other field is a placeholder.

Functions

equals

open operator override fun equals(other: Any?): Boolean(source)

hashCode

open override fun hashCode(): Int(source)

toString

open override fun toString(): String(source)