class Marisa::Wrapper::Trie

Overview

Bindings for marisa::Trie in Crystal

Defined in:

lib_marisa.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Instance Method Detail

def build(keyset : Keyset, config_flags : Int32) #

def clear #

def common_prefix_search(agent : Agent) : Bool #

def handle : Pointer(Void) #

def load(filename : String) #

def lookup(agent : Agent) : Bool #

def lookup_by_key(ptr : Pointer(UInt8), length : UInt64) : UInt64 #

def mmap(filename : String) #

def num_keys #

def predictive_search(agent : Agent) : Bool #

def reverse_lookup(agent : Agent) #

def reverse_lookup_by_id(id : UInt64) : Tuple(Pointer(UInt8), UInt64) #

def save(filename : String) #