/
dictionary_merger.pxd
46 lines (40 loc) · 2.33 KB
/
dictionary_merger.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from libcpp.string cimport string as libcpp_string
from libcpp.string cimport string as libcpp_utf8_string
from libcpp.map cimport map as libcpp_map
from libc.string cimport const_char
ctypedef void (*callback_t)(size_t a, size_t b, void* user_data)
cdef extern from "dictionary/dictionary_types.h" namespace "keyvi::dictionary":
cdef cppclass JsonDictionaryMerger:
JsonDictionaryMerger() except +
JsonDictionaryMerger(libcpp_map[libcpp_utf8_string, libcpp_utf8_string] value_store_params) except +
void Add(libcpp_utf8_string) except +
void SetManifest(libcpp_utf8_string) # wrap-ignore
void Merge(libcpp_utf8_string) nogil
cdef extern from "dictionary/dictionary_types.h" namespace "keyvi::dictionary":
cdef cppclass CompletionDictionaryMerger:
CompletionDictionaryMerger() except +
CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string, libcpp_utf8_string] value_store_params) except +
void Add(libcpp_utf8_string) except +
void SetManifest(libcpp_utf8_string) # wrap-ignore
void Merge(libcpp_utf8_string) nogil
cdef extern from "dictionary/dictionary_types.h" namespace "keyvi::dictionary":
cdef cppclass StringDictionaryMerger:
StringDictionaryMerger() except +
StringDictionaryMerger(libcpp_map[libcpp_utf8_string, libcpp_utf8_string] value_store_params) except +
void Add(libcpp_utf8_string) except +
void SetManifest(libcpp_utf8_string) # wrap-ignore
void Merge(libcpp_utf8_string) nogil
cdef extern from "dictionary/dictionary_types.h" namespace "keyvi::dictionary":
cdef cppclass KeyOnlyDictionaryMerger:
KeyOnlyDictionaryMerger() except +
KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string, libcpp_utf8_string] value_store_params) except +
void Add(libcpp_utf8_string) except +
void SetManifest(libcpp_utf8_string) # wrap-ignore
void Merge(libcpp_utf8_string) nogil
cdef extern from "dictionary/dictionary_types.h" namespace "keyvi::dictionary":
cdef cppclass IntDictionaryMerger:
IntDictionaryMerger() except +
IntDictionaryMerger(libcpp_map[libcpp_utf8_string, libcpp_utf8_string] value_store_params) except +
void Add(libcpp_utf8_string) except +
void SetManifest(libcpp_utf8_string) # wrap-ignore
void Merge(libcpp_utf8_string) nogil