Skip to content

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

A split-block Bloom filter specialized for byte arrays.

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

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

SplitBlockBloomFilterMetadata.scalarKind


update: (value) => void

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

Add one byte array. O(length); mutates the filter.

Uint8Array

void

From knotkit/hash for an invalid byte array.

With CAPACITY_EXCEEDED when the update count is full.


mightContain: (value) => boolean

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

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

Uint8Array

boolean

From knotkit/hash for an invalid byte array.


merge: (other) => void

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

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

BytesSplitBlockBloomFilter

void

With FOREIGN_STRUCTURE, WRONG_FAMILY, INCOMPATIBLE_SKETCH, or CAPACITY_EXCEEDED.


reduce: (targetBlockCount) => BytesSplitBlockBloomFilter

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

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

number

BytesSplitBlockBloomFilter

With INVALID_REDUCTION for an unsound target.