InnoDB Plugin  1.0
Functions
fts0priv.ic File Reference
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE int fts_write_object_id (ib_id_t id, char *str, bool hex_format))
UNIV_INLINE ibool fts_read_object_id (ib_id_t *id, const char *str)
UNIV_INLINE int fts_trx_table_cmp (const void *p1, const void *p2)
UNIV_INLINE int fts_trx_table_id_cmp (const void *p1, const void *p2)

Detailed Description

Full text search internal header file

Created 2011/11/12 Sunny Bains

Function Documentation

UNIV_INLINE ibool fts_read_object_id ( ib_id_t id,
const char *  str 
)

Read the table id from the string generated by fts_write_object_id().

Returns
TRUE if parse successful
Parameters
idout: a table id
strin: buffer to read from
UNIV_INLINE int fts_trx_table_cmp ( const void *  p1,
const void *  p2 
)

Compare two fts_trx_table_t instances.

Returns
< 0 if n1 < n2, 0 if n1 == n2, > 0 if n1 > n2
Parameters
p1in: id1
p2in: id2
UNIV_INLINE int fts_trx_table_id_cmp ( const void *  p1,
const void *  p2 
)

Compare a table id with a fts_trx_table_t table id.

Returns
< 0 if n1 < n2, 0 if n1 == n2,> 0 if n1 > n2
Parameters
p1in: id1
p2in: id2
UNIV_INLINE int fts_write_object_id ( ib_id_t  id,
char *  str,
bool  hex_format 
)

Write the table id to the given buffer (including final NUL). Buffer must be at least FTS_AUX_MIN_TABLE_ID_LENGTH bytes long.

Returns
number of bytes written
Parameters
idin: a table/index id
strin: buffer to write the id to