# Uint64SplitBlockBloomFilter

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

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

## 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**: `"uint64"`

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

#### 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:138](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L138)

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

#### Parameters

##### value

`bigint`

#### Returns

`void`

#### Throws

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

#### 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:144](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/split-block-bloom-filter.ts#L144)

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

#### Parameters

##### value

`bigint`

#### Returns

`boolean`

#### Throws

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

***

### merge

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

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

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

#### Parameters

##### other

`Uint64SplitBlockBloomFilter`

#### Returns

`void`

#### Throws

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

***

### reduce

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

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

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

#### Parameters

##### targetBlockCount

`number`

#### Returns

`Uint64SplitBlockBloomFilter`

#### Throws

With `INVALID_REDUCTION` for an unsound target.
