CardinalityEstimator

com.netflix.atlas.core.util.CardinalityEstimator
See theCardinalityEstimator companion object

Utility for cheaply estimating the number of distinct values for a set of objects.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def cardinality: Long

Return the current estimate for the number of distinct values seen.

Return the current estimate for the number of distinct values seen.

Attributes

def update(obj: AnyRef): Unit

Update the estimate with the provided value. The object should have a good hash code implementation that is likely to be distinct for different values of the object.

Update the estimate with the provided value. The object should have a good hash code implementation that is likely to be distinct for different values of the object.

Attributes

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any