MySQL 9.1.0
Source Code Documentation
|
Full text search types. More...
Macros | |
#define | INNOBASE_FTS0TYPES_IC |
Functions | |
void | fts_string_dup (fts_string_t *dst, const fts_string_t *src, mem_heap_t *heap) |
Duplicate a string. More... | |
int | fts_doc_id_cmp (doc_id_t id1, doc_id_t id2) |
Compare two doc_ids. More... | |
template<typename T > | |
int | fts_doc_id_field_cmp (const void *p1, const void *p2) |
Compare doc_ids of 2 objects. More... | |
ulint | innobase_strnxfrm (const CHARSET_INFO *cs, const uchar *p2, const ulint len2) |
Get the first character's code position for FTS index partition. More... | |
bool | fts_is_charset_cjk (const CHARSET_INFO *cs) |
Check if fts index charset is cjk. More... | |
ulint | fts_select_index_by_range (const CHARSET_INFO *cs, const byte *str, ulint len) |
Select the FTS auxiliary index for the given character by range. More... | |
ulint | fts_select_index_by_hash (const CHARSET_INFO *cs, const byte *str, ulint len) |
Select the FTS auxiliary index for the given character by hash. More... | |
ulint | fts_select_index (const CHARSET_INFO *cs, const byte *str, ulint len) |
Select the FTS auxiliary table for the given character. More... | |
const char * | fts_get_suffix (ulint selected) |
Return the selected FTS aux index suffix. More... | |
const char * | fts_get_suffix_5_7 (ulint selected) |
Return the selected FTS aux index suffix in 5.7 compatible format. More... | |
Full text search types.
Created 2007-03-27 Sunny Bains
#define INNOBASE_FTS0TYPES_IC |
Compare two doc_ids.
[in] | id1 | 1st doc_id to compare |
[in] | id2 | 2nd doc_id to compare |
int fts_doc_id_field_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Compare doc_ids of 2 objects.
[in] | p1 | Pointer to first instance o1 of T |
[in] | p2 | Pointer to second instance o2 of T |
|
inline |
Return the selected FTS aux index suffix.
Get the selected FTS aux INDEX suffix.
selected | in: selected index |
|
inline |
Return the selected FTS aux index suffix in 5.7 compatible format.
[in] | selected | selected index |
|
inline |
Check if fts index charset is cjk.
[in] | cs | charset |
true | if the charset is cjk |
false | if not. |
|
inline |
Select the FTS auxiliary table for the given character.
[in] | cs | charset |
[in] | str | string |
[in] | len | string length in bytes |
the | auxiliary table number to use for the string, zero-based |
|
inline |
Select the FTS auxiliary index for the given character by hash.
[in] | cs | charset |
[in] | str | string |
[in] | len | string length |
the | index to use for the string |
|
inline |
Select the FTS auxiliary index for the given character by range.
[in] | cs | charset |
[in] | str | string |
[in] | len | string length |
the | index to use for the string |
|
inline |
Duplicate a string.
[in] | dst | dup to here |
[in] | src | src string |
[in] | heap | heap to use |
dst | in: dup to here |
src | in: src string |
heap | in: heap to use |
ulint innobase_strnxfrm | ( | const CHARSET_INFO * | cs, |
const uchar * | p2, | ||
const ulint | len2 | ||
) |
Get the first character's code position for FTS index partition.
[in] | cs | Character set |
[in] | p2 | string |
[in] | len2 | string length |