case class MutableScalableBloomFilter[T](fpProb: Double, headCapacity: Long, growthRate: Int, tighteningRatio: Double, headFPProb: Double, headCount: Long, head: Option[google.common.hash.BloomFilter[T]], tail: List[Either[google.common.hash.BloomFilter[T], SerializedBloomFilters]])(implicit funnel: Funnel[T]) extends Serializable with Product
Import magnolify.guava.auto._
to get common instances of Guava
Funnel s.
- T
The type of objects inserted into the filter
- fpProb
The initial false positive probability
- headCapacity
The capacity of the filter at the head of
filters
- growthRate
The growth rate of each subsequent filter added to
filters
- tighteningRatio
The tightening ratio applied to
headFPProb
when scaling- headFPProb
The false positive probability of the head of
filters
- headCount
The number of items currently in the filter at the head of
filters
- head
The underlying bloom filter currently being inserted into, or
None
if this scalable filter has just been initialized- tail
The underlying already-saturated bloom filters, lazily deserialized from bytes as necessary.
- funnel
The funnel to turn
T
s into bytes
- Alphabetic
- By Inheritance
- MutableScalableBloomFilter
- Product
- Equals
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MutableScalableBloomFilter(fpProb: Double, headCapacity: Long, growthRate: Int, tighteningRatio: Double, headFPProb: Double, headCount: Long, head: Option[google.common.hash.BloomFilter[T]], tail: List[Either[google.common.hash.BloomFilter[T], SerializedBloomFilters]])(implicit funnel: Funnel[T])
- fpProb
The initial false positive probability
- headCapacity
The capacity of the filter at the head of
filters
- growthRate
The growth rate of each subsequent filter added to
filters
- tighteningRatio
The tightening ratio applied to
headFPProb
when scaling- headFPProb
The false positive probability of the head of
filters
- headCount
The number of items currently in the filter at the head of
filters
- head
The underlying bloom filter currently being inserted into, or
None
if this scalable filter has just been initialized- tail
The underlying already-saturated bloom filters, lazily deserialized from bytes as necessary.
- funnel
The funnel to turn
T
s into bytes
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++=(items: TraversableOnce[T]): MutableScalableBloomFilter[T]
- def +=(item: T): MutableScalableBloomFilter[T]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def approximateElementCount: Long
Note: Will cause deserialization of any
SerializedBloomFilters
.Note: Will cause deserialization of any
SerializedBloomFilters
.- returns
The sum of the approximate element count for all underlying filters.
- 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 finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val fpProb: Double
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mightContain(item: T): Boolean
Note: Will cause deserialization of any
SerializedBloomFilters
.Note: Will cause deserialization of any
SerializedBloomFilters
.- item
The item to check
- returns
True if any of the backing filters 'might contain'
item
, false otherwise.
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()