|
| Inserter (Context &ctx, Dup *dup, bool doc_id_32_bit) noexcept |
| Constructor. More...
|
|
| ~Inserter () noexcept |
| Destructor. More...
|
|
dberr_t | insert (Builder *builder, Handler *handler) noexcept |
| Read sorted file(s) containing index data tuples and insert these data tuples to the index. More...
|
|
dberr_t | add_file (size_t id, file_t file) noexcept |
| Add a file to the handler for merging and inserting. More...
|
|
dberr_t | write_node (const Insert *ins_ctx, const fts_string_t *word, const fts_node_t *node) noexcept |
| Write out a single word's data as new entry/entries in the INDEX table. More...
|
|
dberr_t | write_word (Insert *ins_ctx, fts_tokenizer_word_t *word) noexcept |
| Insert processed FTS data to auxiliary index tables. More...
|
|
void | insert_tuple (Insert *ins_ctx, fts_tokenizer_word_t *word, ib_vector_t *positions, doc_id_t *in_doc_id, const dtuple_t *dtuple) noexcept |
| Read sorted FTS data files and insert data tuples to auxiliary tables. More...
|
|
◆ Handlers
◆ Inserter()
ddl::FTS::Inserter::Inserter |
( |
Context & |
ctx, |
|
|
Dup * |
dup, |
|
|
bool |
doc_id_32_bit |
|
) |
| |
|
noexcept |
Constructor.
- Parameters
-
[in,out] | ctx | DDL context. |
[in,out] | dup | Descriptor of FTS index being created. |
[in] | doc_id_32_bit | Size of the doc ID column to use for sort. |
◆ ~Inserter()
ddl::FTS::Inserter::~Inserter |
( |
| ) |
|
|
inlinenoexcept |
◆ add_file()
Add a file to the handler for merging and inserting.
- Parameters
-
[in] | id | Aux index ID. |
[in] | file | File to merge and insert. |
- Returns
- DB_SUCCESS or error code.
◆ insert()
Read sorted file(s) containing index data tuples and insert these data tuples to the index.
- Parameters
-
[in,out] | builder | Index builder. |
[in,out] | handler | Insert handler. |
- Returns
- DB_SUCCESS or error number
◆ insert_tuple()
Read sorted FTS data files and insert data tuples to auxiliary tables.
- Parameters
-
[in] | ins_ctx | Insert context. |
[in] | word | Last processed tokenized word. |
[in] | positions | Word position. |
[in] | in_doc_id | Last item doc id. |
[in] | dtuple | Entry to insert or nullptr on end. |
◆ write_node()
Write out a single word's data as new entry/entries in the INDEX table.
- Parameters
-
[in] | ins_ctx | Insert context. |
[in] | word | Word string. |
[in] | node | Node columns. |
- Returns
- DB_SUCCUESS if insertion runs fine, otherwise error code
◆ write_word()
Insert processed FTS data to auxiliary index tables.
- Parameters
-
[in] | ins_ctx | Insert context. |
[in] | word | Sorted and tokenized word. |
- Returns
- DB_SUCCESS if insertion runs fine
◆ m_ctx
◆ m_doc_id_32_bit
bool ddl::FTS::Inserter::m_doc_id_32_bit {} |
◆ m_dup
Dup* ddl::FTS::Inserter::m_dup {} |
◆ m_handlers
Handlers ddl::FTS::Inserter::m_handlers {} |
There is one handler per parser.
The documentation for this struct was generated from the following file: