Skip to content

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:99

A split-block Bloom filter specialized for unsigned 32-bit numbers.

readonly kind: "split-block-bloom-filter"

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:15

SplitBlockBloomFilterMetadata.kind


readonly blockCount: number

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:18

Effective number of 256-bit blocks. Always a power of two.

SplitBlockBloomFilterMetadata.blockCount


readonly stateByteLength: number

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:20

Bytes occupied by the mutable bit state, excluding object overhead.

SplitBlockBloomFilterMetadata.stateByteLength


readonly updateCount: bigint

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:22

Number of accepted update attempts, including repeated values.

SplitBlockBloomFilterMetadata.updateCount


readonly estimatedFalsePositiveProbability: number

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:31

Current split-block Bloom model estimate.

The model averages each block’s eight-lane false-positive probability over its binomially distributed load. Counting attempts instead of distinct inputs makes the reported value conservative when callers repeat updates. The model assumes uniform XXH64 block selection and independent lanes.

SplitBlockBloomFilterMetadata.estimatedFalsePositiveProbability


readonly seed: bigint

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:33

XXH64 seed that participates in merge compatibility.

SplitBlockBloomFilterMetadata.seed


readonly scalarKind: "uint32"

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:100

SplitBlockBloomFilterMetadata.scalarKind


update: (value) => void

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:107

Add one unsigned 32-bit number. O(1); mutates the filter.

number

void

From knotkit/hash when the value is outside the unsigned 32-bit domain.

With CAPACITY_EXCEEDED when the update count is full.


mightContain: (value) => boolean

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:113

Return false for a definite miss and true for a possible member. O(1).

number

boolean

From knotkit/hash when the value is outside the unsigned 32-bit domain.


merge: (other) => void

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:120

Union a compatible filter into this filter. O(blockCount); mutates only this filter.

Uint32SplitBlockBloomFilter

void

With FOREIGN_STRUCTURE, WRONG_FAMILY, INCOMPATIBLE_SKETCH, or CAPACITY_EXCEEDED.


reduce: (targetBlockCount) => Uint32SplitBlockBloomFilter

Defined in: packages/scalar-sketch/src/split-block-bloom-filter.ts:126

Return a new filter folded to a power-of-two block count no larger than this one.

number

Uint32SplitBlockBloomFilter

With INVALID_REDUCTION for an unsound target.