org.apache.spark.sql.catalyst.util
HyperLogLogPlusPlusHelper
Companion class HyperLogLogPlusPlusHelper
object HyperLogLogPlusPlusHelper extends Serializable
Constants used in the implementation of the HyperLogLogPlusPlus aggregate function.
See the Appendix to HyperLogLog in Practice: Algorithmic Engineering of a State of the Art Cardinality (https://docs.google.com/document/d/1gyjfMHy43U9OWBXxfaeG-3MjGzejW1dlpyMwEYAAWEI/view?fullscreen) for more information.
- Alphabetic
- By Inheritance
- HyperLogLogPlusPlusHelper
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val BIAS_DATA: Array[Array[Double]]
Bias corrections given a precision and the index of the raw estimate table.
- val K: Int
Number of points used for interpolating the bias value.
- val RAW_ESTIMATE_DATA: Array[Array[Double]]
Lookup table used to find the (index of the) bias correction for a given precision (exact) and estimate (nearest).
- val REGISTERS_PER_WORD: Int
The number of registers which can be stored in one word.
- val REGISTER_SIZE: Int
The number of bits that is required per register.
The number of bits that is required per register.
This number is determined by the maximum number of leading binary zeros a hashcode can produce. This is equal to the number of bits the hashcode returns. The current implementation uses a 64-bit hashcode, this means 6-bits are (at most) needed to store the number of leading zeros.
- val REGISTER_WORD_MASK: Long
Value used to mask a register stored in a word.
- val THRESHOLDS: Array[Double]
Thresholds which decide if the linear counting or the regular algorithm is used.
- val WORD_SIZE: Int
The size of a word used for storing registers: 64 Bits.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()