Versions in this module Expand all Collapse all v0 v0.1.1 Jan 31, 2022 v0.1.0 Jan 26, 2022 Changes in this version + type ByteTrie struct + func NewByteTrie(data da.Nodes) *ByteTrie + func (t *ByteTrie) CommonPrefixSearch(key []byte) ([]node.Index, error) + func (t *ByteTrie) ExactMatchSearch(key []byte) (node.Index, error) + func (t *ByteTrie) WriteTo(w io.Writer) (int64, error) + type ByteTrieBuilder struct + func NewByteTrieBuilder(opt ...da.Option) *ByteTrieBuilder + func (b *ByteTrieBuilder) Build(ks da.Walker) (*ByteTrie, error) + func (b *ByteTrieBuilder) BuildSlice(xs [][]byte) (*ByteTrie, error) + type DictTrie struct + func NewDictTrie(data da.Nodes, dict dict.Dict) *DictTrie + func (t *DictTrie) CommonPrefixSearch(key []byte) ([]node.Index, error) + func (t *DictTrie) ExactMatchSearch(key []byte) (node.Index, error) + func (t *DictTrie) GetDict() dict.Dict + func (t *DictTrie) ReadFrom(r io.Reader) (int64, error) + func (t *DictTrie) WriteTo(w io.Writer) (int64, error) + type DictTrieBuilder struct + func NewDictTrieBuilder(opt ...da.Option) *DictTrieBuilder + func (b *DictTrieBuilder) Build(ks doublearray.Walker, dict dict.Dict) (*DictTrie, error) + func (b *DictTrieBuilder) BuildFromLines(r io.Reader) (*DictTrie, error) + type RuneTrie struct + func NewRuneTrie(data da.Nodes, dict runes.Dict) *RuneTrie + func (t *RuneTrie) CommonPrefixSearch(key string) ([]node.Index, error) + func (t *RuneTrie) ExactMatchSearch(key string) (node.Index, error) + func (t *RuneTrie) GetDict() runes.Dict + func (t *RuneTrie) ReadFrom(r io.Reader) (int64, error) + func (t *RuneTrie) WriteTo(w io.Writer) (int64, error) + type RuneTrieBuilder struct + func NewRuneTrieBuilder(opt ...da.Option) *RuneTrieBuilder + func (b *RuneTrieBuilder) Build(ks da.Walker, dict runes.Dict) (*RuneTrie, error) + func (b *RuneTrieBuilder) BuildFromLines(r io.Reader) (*RuneTrie, error) + func (b *RuneTrieBuilder) BuildSlice(xs []string) (*RuneTrie, error)