26 #ifndef INNOBASE_FTS0PRIV_H
27 #define INNOBASE_FTS0PRIV_H
53 #define FTS_MAX_BACKGROUND_THREAD_WAIT 10000
56 #define FTS_BACKGROUND_THREAD_WAIT_COUNT 1000
59 #define FTS_MAX_CONFIG_NAME_LEN 64
62 #define FTS_MAX_CONFIG_VALUE_LEN 1024
65 #define FTS_ILIST_MAX_SIZE (64 * 1024)
70 #define FTS_OPTIMIZE_LIMIT_IN_SECS "optimize_checkpoint_limit"
73 #define FTS_SYNCED_DOC_ID "synced_doc_id"
76 #define FTS_LAST_OPTIMIZED_WORD "last_optimized_word"
80 #define FTS_TOTAL_DELETED_COUNT "deleted_doc_count"
83 #define FTS_TOTAL_WORD_COUNT "total_word_count"
86 #define FTS_OPTIMIZE_START_TIME "optimize_start_time"
89 #define FTS_OPTIMIZE_END_TIME "optimize_end_time"
92 #define FTS_STOPWORD_TABLE_NAME "stopword_table_name"
95 #define FTS_USE_STOPWORD "use_stopword"
99 #define FTS_TABLE_STATE "table_state"
109 #define FTS_AUX_MIN_TABLE_ID_LENGTH 48
112 #define FTS_MAX_INT_LEN 32
124 __attribute__((nonnull(3), malloc, warn_unused_result));
134 __attribute__((nonnull, warn_unused_result));
144 __attribute__((nonnull, malloc, warn_unused_result));
167 __attribute__((nonnull, warn_unused_result));
172 #define FTS_FETCH_DOC_BY_ID_EQUAL 1
173 #define FTS_FETCH_DOC_BY_ID_LARGE 2
174 #define FTS_FETCH_DOC_BY_ID_SMALL 3
194 __attribute__((nonnull(6)));
206 __attribute__((nonnull));
219 __attribute__((nonnull, warn_unused_result));
230 __attribute__((nonnull(1)));
244 __attribute__((nonnull(1)));
252 __attribute__((nonnull));
266 __attribute__((nonnull, warn_unused_result));
274 __attribute__((nonnull));
282 __attribute__((nonnull));
296 __attribute__((nonnull));
307 __attribute__((nonnull));
318 __attribute__((nonnull, warn_unused_result));
328 __attribute__((nonnull, warn_unused_result));
337 __attribute__((nonnull));
346 __attribute__((nonnull));
358 __attribute__((nonnull(3), malloc, warn_unused_result));
373 __attribute__((nonnull));
389 __attribute__((nonnull, warn_unused_result));
403 __attribute__((nonnull));
415 __attribute__((nonnull, warn_unused_result));
429 __attribute__((nonnull, warn_unused_result));
442 __attribute__((nonnull, warn_unused_result));
455 __attribute__((nonnull));
467 __attribute__((nonnull, warn_unused_result));
479 __attribute__((nonnull, warn_unused_result));
491 __attribute__((nonnull));
503 __attribute__((nonnull, warn_unused_result));
514 __attribute__((nonnull, warn_unused_result));
538 #ifdef FTS_DOC_STATS_DEBUG
544 fts_get_total_word_count(
549 __attribute__((nonnull, warn_unused_result));
562 __attribute__((nonnull, warn_unused_result));
573 bool hex_format __attribute__((unused)))
576 __attribute__((nonnull));
586 __attribute__((nonnull, warn_unused_result));
599 __attribute__((nonnull, warn_unused_result));
607 __attribute__((nonnull));
615 __attribute__((nonnull));
625 __attribute__((nonnull, malloc, warn_unused_result));
636 __attribute__((nonnull(2,4)));
647 __attribute__((nonnull, malloc, warn_unused_result));