Documentation
¶
Index ¶
- Constants
- Variables
- func Bit0(n int, p int, pad int) int
- type FrozenTrie
- func (ft *FrozenTrie) CreateUrlEncodedflag(fl []string) string
- func (ft *FrozenTrie) DNlookup(dn string, usr_flag string) (bool, []string)
- func (f *FrozenTrie) Dispose()
- func (ft *FrozenTrie) FlagstoTag(flags []uint32) []string
- func (ft *FrozenTrie) LoadTag(filepath string) error
- func (ft *FrozenTrie) Lookup(word []uint8) (bool, []uint32)
- func (f *FrozenTrie) Sizes() string
- func (ft *FrozenTrie) UrlEncodedFlagstrToTags(str string) []string
- type FrozenTrieNode
- type ReadKind
Constants ¶
View Source
const ( W = 16 L1 = 32 * 32 L2 = 32 )
Variables ¶
View Source
var BitsetTable256 [256]int
View Source
var MaskHi = make(map[int][]uint16)
View Source
var MaskLo = make(map[int][]uint16)
Functions ¶
Types ¶
type FrozenTrie ¶
type FrozenTrie struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(tdpath, rdpath, bcpath, ftpath string, rk ReadKind) (ftrie *FrozenTrie, err error)
func NewFrozenTrie ¶
func NewFrozenTrie(td *binstr, rdir *rankdir, nodeCount int, tagfile string) *FrozenTrie
func (*FrozenTrie) CreateUrlEncodedflag ¶
func (ft *FrozenTrie) CreateUrlEncodedflag(fl []string) string
func (*FrozenTrie) DNlookup ¶
func (ft *FrozenTrie) DNlookup(dn string, usr_flag string) (bool, []string)
func (*FrozenTrie) Dispose ¶
func (f *FrozenTrie) Dispose()
func (*FrozenTrie) FlagstoTag ¶
func (ft *FrozenTrie) FlagstoTag(flags []uint32) []string
func (*FrozenTrie) LoadTag ¶
func (ft *FrozenTrie) LoadTag(filepath string) error
func (*FrozenTrie) Sizes ¶
func (f *FrozenTrie) Sizes() string
func (*FrozenTrie) UrlEncodedFlagstrToTags ¶
func (ft *FrozenTrie) UrlEncodedFlagstrToTags(str string) []string
type FrozenTrieNode ¶
type FrozenTrieNode struct {
// contains filtered or unexported fields
}
func NewFrozenTrieNode ¶
func NewFrozenTrieNode(ft *FrozenTrie, index int) *FrozenTrieNode
func (*FrozenTrieNode) String ¶
func (ftn *FrozenTrieNode) String() string
Click to show internal directories.
Click to hide internal directories.