MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fts0config.cc File Reference
#include "trx0roll.h"
#include "row0sel.h"
#include "fts0priv.h"
#include "fts0types.ic"
#include "fts0vlc.ic"
Include dependency graph for fts0config.cc:

Go to the source code of this file.

Functions

UNIV_INTERN dberr_t fts_config_get_value (trx_t *trx, fts_table_t *fts_table, const char *name, fts_string_t *value)
UNIV_INTERN char * fts_config_create_index_param_name (const char *param, const dict_index_t *index)
UNIV_INTERN dberr_t fts_config_get_index_value (trx_t *trx, dict_index_t *index, const char *param, fts_string_t *value)
UNIV_INTERN dberr_t fts_config_set_value (trx_t *trx, fts_table_t *fts_table, const char *name, const fts_string_t *value)
UNIV_INTERN dberr_t fts_config_set_index_value (trx_t *trx, dict_index_t *index, const char *param, fts_string_t *value)
UNIV_INTERN dberr_t fts_config_get_index_ulint (trx_t *trx, dict_index_t *index, const char *name, ulint *int_value)
UNIV_INTERN dberr_t fts_config_set_index_ulint (trx_t *trx, dict_index_t *index, const char *name, ulint int_value)
UNIV_INTERN dberr_t fts_config_get_ulint (trx_t *trx, fts_table_t *fts_table, const char *name, ulint *int_value)
UNIV_INTERN dberr_t fts_config_set_ulint (trx_t *trx, fts_table_t *fts_table, const char *name, ulint int_value)
UNIV_INTERN dberr_t fts_config_increment_value (trx_t *trx, fts_table_t *fts_table, const char *name, ulint delta)
UNIV_INTERN dberr_t fts_config_increment_index_value (trx_t *trx, dict_index_t *index, const char *param, ulint delta)

Detailed Description

Full Text Search configuration table.

Created 2007/5/9 Sunny Bains

Definition in file fts0config.cc.

Function Documentation

UNIV_INTERN char* fts_config_create_index_param_name ( const char *  param,
const dict_index_t index 
)

Create the config table name for retrieving index specific value.

Returns
index config parameter name
Parameters
paramin: base name of param
indexin: index for config

Definition at line 137 of file fts0config.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dberr_t fts_config_get_index_ulint ( trx_t trx,
dict_index_t index,
const char *  name,
ulint *  int_value 
)

Get an ulint value from the config table.

Returns
DB_SUCCESS if all OK else error code
Parameters
trxin: transaction
indexin: FTS index
namein: param name
int_valueout: value

Definition at line 297 of file fts0config.cc.

Here is the call graph for this function:

UNIV_INTERN dberr_t fts_config_get_index_value ( trx_t trx,
dict_index_t index,
const char *  param,
fts_string_t value 
)

Get value specific to an FTS index from the config table. The caller must ensure that enough space is allocated for value to hold the column contents.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
indexin: index
paramin: get config value for this parameter name
valueout: value read from config table

Definition at line 166 of file fts0config.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dberr_t fts_config_get_ulint ( trx_t trx,
fts_table_t fts_table,
const char *  name,
ulint *  int_value 
)

Get an ulint value from the config table.

Returns
DB_SUCCESS if all OK else error code
Parameters
trxin: transaction
fts_tablein: the indexed FTS table
namein: param name
int_valueout: value

Definition at line 373 of file fts0config.cc.

Here is the call graph for this function:

UNIV_INTERN dberr_t fts_config_get_value ( trx_t trx,
fts_table_t fts_table,
const char *  name,
fts_string_t value 
)

Get value from the config table. The caller must ensure that enough space is allocated for value to hold the column contents.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
fts_tablein: the indexed FTS table
namein: get config value for this parameter name
valueout: value read from config table

Definition at line 74 of file fts0config.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dberr_t fts_config_increment_index_value ( trx_t trx,
dict_index_t index,
const char *  param,
ulint  delta 
)

Increment the per index value in the config table for column name.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
indexin: FTS index
paramin: increment config value for this parameter name
deltain: increment by this much

Definition at line 537 of file fts0config.cc.

Here is the call graph for this function:

UNIV_INTERN dberr_t fts_config_increment_value ( trx_t trx,
fts_table_t fts_table,
const char *  name,
ulint  delta 
)

Increment the value in the config table for column name.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
fts_tablein: the indexed FTS table
namein: increment config value for this parameter name
deltain: increment by this much

Definition at line 451 of file fts0config.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dberr_t fts_config_set_index_ulint ( trx_t trx,
dict_index_t index,
const char *  name,
ulint  int_value 
)

Set an ulint value in the config table.

Returns
DB_SUCCESS if all OK else error code
Parameters
trxin: transaction
indexin: FTS index
namein: param name
int_valuein: value

Definition at line 333 of file fts0config.cc.

Here is the call graph for this function:

UNIV_INTERN dberr_t fts_config_set_index_value ( trx_t trx,
dict_index_t index,
const char *  param,
fts_string_t value 
)

Set the value specific to an FTS index in the config table.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
indexin: index
paramin: get config value for this parameter name
valueout: value read from config table

Definition at line 266 of file fts0config.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dberr_t fts_config_set_ulint ( trx_t trx,
fts_table_t fts_table,
const char *  name,
ulint  int_value 
)

Set an ulint value in the config table.

Returns
DB_SUCCESS if all OK else error code
Parameters
trxin: transaction
fts_tablein: the indexed FTS table
namein: param name
int_valuein: value

Definition at line 410 of file fts0config.cc.

Here is the call graph for this function:

UNIV_INTERN dberr_t fts_config_set_value ( trx_t trx,
fts_table_t fts_table,
const char *  name,
const fts_string_t value 
)

Set the value in the config table for name.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
fts_tablein: the indexed FTS table
namein: get config value for this parameter name
valuein: value to update

Definition at line 197 of file fts0config.cc.

Here is the call graph for this function:

Here is the caller graph for this function: