Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFuzzyMatcher ¶ added in v0.3.5
func NewFuzzyMatcher(t *levenshtein.MinTree, kv *badger.DB) fuzzyMatcher
Creates new a struct compatible with FuzzyMatcher interface.
Types ¶
type MatchResult ¶ added in v0.3.0
type MatchTask ¶ added in v0.3.0
MatchTask contains a name to be matched and an index where it should be located in an array.
type Matcher ¶
type Matcher struct {
Config config.Config
Filters *bloom.Filters
KeyVal *badger.DB
mlib.FuzzyMatcher
}
Matcher contains data and functions necessary for exact, fuzzy and partial matching of scientific names.
func NewMatcher ¶
NewMatcher creates a new instance of Matcher struct.
func (Matcher) MatchWorker ¶ added in v0.3.0
func (m Matcher) MatchWorker(chIn <-chan MatchTask, chOut chan<- MatchResult, wg *sync.WaitGroup)
MatchWorker takes name-strings from chIn channel, matches them and sends results to chOut channel.
Click to show internal directories.
Click to hide internal directories.