Searched defs:trie (Results 1 - 4 of 4) sorted by relevance

/dovecot/src/plugins/fts-squat/
H A Dsquat-test.c9 #include "squat-trie.h"
38 struct squat_trie *trie; local
59 trie = squat_trie_init(trie_path, time(NULL),
69 if (squat_trie_build_init(trie, &build_ctx) < 0)
154 trie_mem = squat_trie_mem_used(trie, &node_count);
155 uidlist_mem = squat_uidlist_mem_used(squat_trie_get_uidlist(trie),
157 fprintf(stderr, " - memory: %uk for trie, %uk for uidlist\n",
181 ret = squat_trie_lookup(trie, str, SQUAT_INDEX_TYPE_HEADER |
H A Dfts-backend-squat.c11 #include "squat-trie.h"
21 struct squat_trie *trie; member in struct:squat_fts_backend
85 if (backend->trie != NULL)
86 squat_trie_deinit(&backend->trie);
113 ret = squat_trie_refresh(backend->trie);
138 backend->trie =
146 squat_trie_set_partial_len(backend->trie, backend->partial_len);
148 squat_trie_set_full_len(backend->trie, backend->full_len);
150 return squat_trie_open(backend->trie);
163 return squat_trie_get_last_uid(backend->trie, last_uid_
[all...]
H A Dsquat-trie.c14 #include "squat-trie-private.h"
34 struct squat_trie *trie; member in struct:squat_trie_build_context
52 struct squat_trie *trie; member in struct:squat_trie_iterate_context
58 static int squat_trie_map(struct squat_trie *trie, bool building);
60 void squat_trie_delete(struct squat_trie *trie) argument
62 i_unlink_if_exists(trie->path);
63 squat_uidlist_delete(trie->uidlist);
66 static void squat_trie_set_corrupted(struct squat_trie *trie) argument
68 trie->corrupted = TRUE;
69 i_error("Corrupted file %s", trie
73 squat_trie_normalize_map_build(struct squat_trie *trie) argument
107 node_free(struct squat_trie *trie, struct squat_node *node) argument
132 struct squat_trie *trie; local
155 squat_trie_close_fd(struct squat_trie *trie) argument
169 squat_trie_close(struct squat_trie *trie) argument
184 struct squat_trie *trie = *_trie; local
193 squat_trie_set_partial_len(struct squat_trie *trie, unsigned int len) argument
198 squat_trie_set_full_len(struct squat_trie *trie, unsigned int len) argument
203 squat_trie_header_init(struct squat_trie *trie) argument
218 squat_trie_open_fd(struct squat_trie *trie) argument
234 squat_trie_open(struct squat_trie *trie) argument
243 squat_trie_is_file_stale(struct squat_trie *trie) argument
271 squat_trie_refresh(struct squat_trie *trie) argument
281 squat_trie_lock(struct squat_trie *trie, int lock_type, struct file_lock **file_lock_r, struct dotlock **dotlock_r) argument
335 node_make_sequential(struct squat_trie *trie, struct squat_node *node, int level) argument
365 node_add_child(struct squat_trie *trie, struct squat_node *node, unsigned char chr, int level) argument
414 trie_file_cache_read(struct squat_trie *trie, size_t offset, size_t size) argument
428 node_read_children(struct squat_trie *trie, struct squat_node *node, int level) argument
729 struct squat_trie *trie = ctx->trie; local
826 struct squat_trie *trie = ctx->trie; local
852 struct squat_trie *trie = ctx->trie; local
887 squat_data_normalize(struct squat_trie *trie, const unsigned char *data, unsigned int size) argument
915 struct squat_trie *trie = ctx->trie; local
971 node_drop_unused_children(struct squat_trie *trie, struct squat_node *node) argument
1003 struct squat_trie *trie = ctx->trie; local
1050 struct squat_trie *trie = ctx->trie; local
1071 squat_trie_iterate_init(struct squat_trie *trie) argument
1411 squat_trie_check_header(struct squat_trie *trie) argument
1428 squat_trie_map_header(struct squat_trie *trie) argument
1479 squat_trie_map(struct squat_trie *trie, bool building) argument
1540 squat_trie_create_fd(struct squat_trie *trie, const char *path, int flags) argument
1563 squat_trie_build_init(struct squat_trie *trie, struct squat_trie_build_context **ctx_r) argument
1610 struct squat_trie *trie = ctx->trie; local
1758 squat_trie_get_last_uid(struct squat_trie *trie, uint32_t *last_uid_r) argument
1770 squat_trie_lookup_data(struct squat_trie *trie, const unsigned char *data, unsigned int size, ARRAY_TYPE(seq_range) *uids) argument
1888 struct squat_trie *trie; member in struct:squat_trie_lookup_context
1938 squat_trie_add_unknown(struct squat_trie *trie, ARRAY_TYPE(seq_range) *maybe_uids) argument
1959 squat_trie_lookup_real(struct squat_trie *trie, const char *str, enum squat_index_type type, ARRAY_TYPE(seq_range) *definite_uids, ARRAY_TYPE(seq_range) *maybe_uids) argument
2066 squat_trie_lookup(struct squat_trie *trie, const char *str, enum squat_index_type type, ARRAY_TYPE(seq_range) *definite_uids, ARRAY_TYPE(seq_range) *maybe_uids) argument
2080 squat_trie_get_uidlist(struct squat_trie *trie) argument
2085 squat_trie_mem_used(struct squat_trie *trie, unsigned int *count_r) argument
[all...]
H A Dsquat-uidlist.c13 #include "squat-trie-private.h"
36 struct squat_trie *trie; member in struct:squat_uidlist
107 squat_trie_delete(uidlist->trie);
376 if (uidlist->hdr.indexid != uidlist->trie->hdr.indexid) {
377 /* see if trie was recreated */
378 (void)squat_trie_open(uidlist->trie);
380 if (uidlist->hdr.indexid != uidlist->trie->hdr.indexid) {
446 if ((uidlist->trie->flags & SQUAT_INDEX_FLAG_MMAP_DISABLE) == 0) {
475 (uidlist->trie->flags & SQUAT_INDEX_FLAG_MMAP_DISABLE) != 0)
513 struct squat_uidlist *squat_uidlist_init(struct squat_trie *trie) argument
[all...]

Completed in 12 milliseconds