MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / BTree

Struct BTree

internal/data/btree.go:31–35  ·  view source on GitHub ↗

BTree represents a B-tree index with optional TTL support.

Source from the content-addressed store, hash-verified

29
30// BTree represents a B-tree index with optional TTL support.
31type BTree struct {
32 index *btree.BTreeG[*core.Item[core.Record]]
33 ttlChecker *ttl.Checker
34 bucketId uint64
35}
36
37// NewBTree creates a new BTree instance with optional TTL support.
38// If no ttlChecker is provided, TTL checking is disabled (useful for internal use like List).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected