kumulant

BloomFilterResult

@Serializable
@SerialName(value = "BloomFilterResult")
data class BloomFilterResult(val bits: Int, val hashes: Int, val words: LongArray, val totalSeen: Long, val hasher: HasherRef = HasherRef.SplitMix64) : Result(source)

Bloom-filter snapshot. words is the bitset packed as bits / 64 longs; merging two snapshots requires identical bits and hashes.

Constructors

Link copied to clipboard
constructor(bits: Int, hashes: Int, words: LongArray, totalSeen: Long, hasher: HasherRef = HasherRef.SplitMix64)

Properties

Link copied to clipboard
val bits: Int

Total bitset size in bits.

Link copied to clipboard

Reference to the LongHasher that produced the bitset; resolved by contains.

Link copied to clipboard
val hashes: Int

Number of hash functions probed per membership query.

Link copied to clipboard

Number of update(value) calls absorbed; informational.

Link copied to clipboard

Packed bitset (bits / 64 longs); mergeable via word-wise OR.

Functions

Link copied to clipboard

True iff every bit set during an update(value) is still set in words. Re-derives the bit positions with the same LongHasher the filter used (resolved by name via Hashers), so a custom hasher must be registered before querying.

BloomFilterResult

constructor(bits: Int, hashes: Int, words: LongArray, totalSeen: Long, hasher: HasherRef = HasherRef.SplitMix64)(source)

bits

Total bitset size in bits.

hasher

Reference to the LongHasher that produced the bitset; resolved by contains.

hashes

Number of hash functions probed per membership query.

totalSeen

Number of update(value) calls absorbed; informational.

words

Packed bitset (bits / 64 longs); mergeable via word-wise OR.