Skip to content

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

A split-block Bloom filter specialized for exact unsigned 64-bit bigints.

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: "uint64"

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

SplitBlockBloomFilterMetadata.scalarKind


update: (value) => void

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

Add one unsigned 64-bit bigint. O(1); mutates the filter.

bigint

void

From knotkit/hash when the value is outside the unsigned 64-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:144

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

bigint

boolean

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


merge: (other) => void

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

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

Uint64SplitBlockBloomFilter

void

With FOREIGN_STRUCTURE, WRONG_FAMILY, INCOMPATIBLE_SKETCH, or CAPACITY_EXCEEDED.


reduce: (targetBlockCount) => Uint64SplitBlockBloomFilter

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

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

number

Uint64SplitBlockBloomFilter

With INVALID_REDUCTION for an unsound target.