package trie
import "github.com/dgraph-io/badger/v3/trie"
Index ¶
Types ¶
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
Trie datastructure.
func NewTrie ¶
func NewTrie() *Trie
NewTrie returns Trie.
func (*Trie) Add ¶
Add adds the id in the trie for the given prefix path.
func (*Trie) Delete ¶
Delete will delete the id if the id exist in the given index path.
func (*Trie) Get ¶
Get returns prefix matched ids for the given key.
Source Files ¶
Tools for package owners.