Object/Class

com.twitter.algebird

HyperLogLogAggregator

Related Docs: class HyperLogLogAggregator | package algebird

Permalink

object HyperLogLogAggregator extends Serializable

This object makes it easier to create Aggregator instances that use HLL

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HyperLogLogAggregator
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(bits: Int): HyperLogLogAggregator

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def sizeAggregator(bits: Int): MonoidAggregator[Array[Byte], HLL, Double]

    Permalink

    Create an Aggregator that returns the estimate size, not the HLL approximate data structure itself.

    Create an Aggregator that returns the estimate size, not the HLL approximate data structure itself. This is convenient, but cannot be combined later with another unique count like an HLL could.

    bits

    is the log of the size the HLL.

  17. def sizeWithError(err: Double): MonoidAggregator[Array[Byte], HLL, Double]

    Permalink

    Give an approximate set size (not the HLL) based on inputs of Array[Byte] see HyperLogLog.bitsForError for a size table based on the error see SetSizeHashAggregator for a version that uses exact sets up to a given size

  18. def sizeWithErrorGeneric[K](err: Double)(implicit hash128: Hash128[K]): MonoidAggregator[K, HLL, Long]

    Permalink
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def withBits[K](bits: Int)(implicit hash128: Hash128[K]): GenHLLAggregator[K]

    Permalink

    This creates an HLL for type K, that uses (2^bits) bytes to store

  25. def withError(err: Double): HyperLogLogAggregator

    Permalink

    Give a HyperLogLog Aggregator that have the given error.

    Give a HyperLogLog Aggregator that have the given error. It is up to you, using bitsForError, to see if the size is still practical for your application.

    0.016 (1.6%), 4 KB 0.006 (0.6%), 32 KB 0.002 (0.2%), 256 KB 0.001 (0.1%), 1024 KB

    Cutting the error in half takes 4x the size.

  26. def withErrorGeneric[K](err: Double)(implicit arg0: Hash128[K]): GenHLLAggregator[K]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped