diff options
author | vitalyisaev <vitalyisaev@ydb.tech> | 2023-11-30 13:26:22 +0300 |
---|---|---|
committer | vitalyisaev <vitalyisaev@ydb.tech> | 2023-11-30 15:44:45 +0300 |
commit | 0a98fece5a9b54f16afeb3a94b3eb3105e9c3962 (patch) | |
tree | 291d72dbd7e9865399f668c84d11ed86fb190bbf /contrib/python/marisa-trie/trie.pxd | |
parent | cb2c8d75065e5b3c47094067cb4aa407d4813298 (diff) | |
download | ydb-0a98fece5a9b54f16afeb3a94b3eb3105e9c3962.tar.gz |
YQ Connector:Use docker-compose in integrational tests
Diffstat (limited to 'contrib/python/marisa-trie/trie.pxd')
-rw-r--r-- | contrib/python/marisa-trie/trie.pxd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/contrib/python/marisa-trie/trie.pxd b/contrib/python/marisa-trie/trie.pxd new file mode 100644 index 0000000000..f525caf8ad --- /dev/null +++ b/contrib/python/marisa-trie/trie.pxd @@ -0,0 +1,41 @@ +cimport agent +cimport base +cimport keyset + + +cdef extern from "<marisa/trie.h>" namespace "marisa" nogil: + + cdef cppclass Trie: + Trie() + + void build(keyset.Keyset &keyset, int config_flags) except + + void build(keyset.Keyset &keyset) except + + + void mmap(char *filename) except + + void map(void *ptr, int size) except + + + void load(char *filename) except + + void read(int fd) except + + + void save(char *filename) except + + void write(int fd) except + + + bint lookup(agent.Agent &agent) except + + void reverse_lookup(agent.Agent &agent) except +KeyError + bint common_prefix_search(agent.Agent &agent) except + + bint predictive_search(agent.Agent &agent) except + + + int num_tries() except + + int num_keys() except + + int num_nodes() except + + + base.TailMode tail_mode() + base.NodeOrder node_order() + + bint empty() except + + int size() except + + int total_size() except + + int io_size() except + + + void clear() except + + void swap(Trie &rhs) except + |