# BytesSplitBlockBloomFilter

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:68](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L68)

A split-block Bloom filter specialized for byte arrays.

## Extends

* [`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/)

## Properties

### kind

> `readonly` **kind**: `"split-block-bloom-filter"`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:15](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L15)

#### Inherited from

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`kind`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#kind)

***

### blockCount

> `readonly` **blockCount**: `number`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:18](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L18)

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

#### Inherited from

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`blockCount`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#blockcount)

***

### stateByteLength

> `readonly` **stateByteLength**: `number`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:20](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L20)

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

#### Inherited from

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`stateByteLength`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#statebytelength)

***

### updateCount

> `readonly` **updateCount**: `bigint`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:22](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L22)

Number of accepted update attempts, including repeated values.

#### Inherited from

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`updateCount`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#updatecount)

***

### estimatedFalsePositiveProbability

> `readonly` **estimatedFalsePositiveProbability**: `number`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:31](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L31)

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.

#### Inherited from

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`estimatedFalsePositiveProbability`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#estimatedfalsepositiveprobability)

***

### seed

> `readonly` **seed**: `bigint`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:33](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L33)

XXH64 seed that participates in merge compatibility.

#### Inherited from

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`seed`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#seed)

***

### scalarKind

> `readonly` **scalarKind**: `"bytes"`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:69](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L69)

#### Overrides

[`SplitBlockBloomFilterMetadata`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/).[`scalarKind`](/reference/knotkit/scalar-sketch/interfaces/splitblockbloomfiltermetadata/#scalarkind)

***

### update

> **update**: (`value`) => `void`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:76](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L76)

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

#### Parameters

##### value

`Uint8Array`

#### Returns

`void`

#### Throws

From `knotkit/hash` for an invalid byte array.

#### Throws

With `CAPACITY_EXCEEDED` when the update count is full.

***

### mightContain

> **mightContain**: (`value`) => `boolean`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:82](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L82)

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

#### Parameters

##### value

`Uint8Array`

#### Returns

`boolean`

#### Throws

From `knotkit/hash` for an invalid byte array.

***

### merge

> **merge**: (`other`) => `void`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:89](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L89)

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

#### Parameters

##### other

`BytesSplitBlockBloomFilter`

#### Returns

`void`

#### Throws

With `FOREIGN_STRUCTURE`, `WRONG_FAMILY`, `INCOMPATIBLE_SKETCH`, or `CAPACITY_EXCEEDED`.

***

### reduce

> **reduce**: (`targetBlockCount`) => `BytesSplitBlockBloomFilter`

Defined in: [packages/scalar-sketch/src/split-block-bloom-filter.ts:95](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L95)

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

#### Parameters

##### targetBlockCount

`number`

#### Returns

`BytesSplitBlockBloomFilter`

#### Throws

With `INVALID_REDUCTION` for an unsound target.
