sparsebitset

package
v0.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(bitset *apiv1.SparseBitset) *roaring.Bitmap

Decode decodes a SparseBitset into a roaring.Bitmap of IDs.

func Encode

func Encode(ids []uint32) *apiv1.SparseBitset

Encode encodes a slice of uint32 IDs into a compact SparseBitset.

func EncodeFilterResult

func EncodeFilterResult(totalCount int, matchedIDs *roaring.Bitmap) (apiv1.FilterResultMode, *apiv1.SparseBitset)

EncodeFilterResult encodes matched entity IDs against totalCount sequential 1-indexed IDs into a FilterResultMode and SparseBitset. It automatically selects either INCLUDE or EXCLUDE mode to minimize payload size.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL