package trie

Import Path
	github.com/dgraph-io/badger/v4/trie (on go.dev)

Dependency Relation
	imports 5 packages, and imported by one package

Involved Source Files trie.go
Package-Level Type Names (only one)
/* sort by: | */
Trie datastructure. Add adds the id in the trie for the given prefix path. AddMatch allows you to send in a prefix match, with "holes" in the prefix. The holes are specified via IgnoreBytes in a comma-separated list of indices starting from 0. A dash can be used to denote a range. Valid example is "3, 5-8, 10, 12-15". Length of IgnoreBytes does not need to match the length of the Prefix passed. Consider a prefix = "aaaa". If the IgnoreBytes is set to "0, 2", then along with key "aaaa...", a key "baba..." would also match. Delete will delete the id if the id exist in the given index path. (*Trie) DeleteMatch(m pb.Match, id uint64) error (*Trie) Get(key []byte) map[uint64]struct{} func NewTrie() *Trie
Package-Level Functions (only one)
NewTrie returns Trie.