33#ifndef ddl0impl_rtree_h
34#define ddl0impl_rtree_h
82 using Tuples = std::vector<dtuple_t *, ut::allocator<dtuple_t *>>;
Class that caches RTree index tuples made from a single cluster index page scan, and then insert into...
Definition: ddl0impl-rtree.h:44
std::vector< dtuple_t *, ut::allocator< dtuple_t * > > Tuples
Cache index rows made from a cluster index scan.
Definition: ddl0impl-rtree.h:82
Context & m_ctx
DDL context.
Definition: ddl0impl-rtree.h:105
mem_heap_t * m_dml_heap
Memory heap for inserting the tuples.
Definition: ddl0impl-rtree.h:96
dberr_t batch_insert(trx_id_t trx_id, Latch_release &&latch_release) noexcept
Insert the rows cached in the batch (m_dtuples).
Definition: ddl0rtree.cc:82
dict_index_t * get_index() noexcept
Get the index instance.
Definition: ddl0impl-rtree.h:61
Tuples * m_dtuples
vector used to cache index rows made from cluster index scan
Definition: ddl0impl-rtree.h:90
dict_index_t * m_index
the index being built
Definition: ddl0impl-rtree.h:99
void deep_copy_tuples() noexcept
Deep copy the fields pointing to the clustered index record.
Definition: ddl0impl-rtree.h:77
mem_heap_t * m_dtuple_heap
Memory heap for creating index tuples.
Definition: ddl0impl-rtree.h:93
Tuples::iterator m_iter
Iterator to process m_dtuples.
Definition: ddl0impl-rtree.h:102
~RTree_inserter() noexcept
Destructor.
Definition: ddl0rtree.cc:48
RTree_inserter(Context &ctx, dict_index_t *index) noexcept
Constructor.
Definition: ddl0rtree.cc:40
bool is_initialized() noexcept
Definition: ddl0impl-rtree.h:55
void add_to_batch(const dtuple_t *row, const row_ext_t *ext) noexcept
Caches an index row into index tuple vector.
Definition: ddl0rtree.cc:75
dberr_t
Definition: db0err.h:39
Create Full Text Index with (parallel) merge sort.
DDL implementation include file.
The general architecture is that the work is done in two phases, roughly the read and write phase.
Definition: btr0load.cc:42
std::function< dberr_t()> Latch_release
Called when a log free check is required.
Definition: ddl0impl.h:50
Json_data_extension ext
Definition: backend.cc:50
DDL context/configuration.
Definition: ddl0ddl.h:321
Data structure for an index.
Definition: dict0mem.h:1041
Structure for an SQL data tuple of fields (logical record)
Definition: data0data.h:696
The info structure stored at the beginning of a heap block.
Definition: mem0mem.h:302
Prefixes of externally stored columns.
Definition: row0ext.h:95
ib_id_t trx_id_t
Transaction identifier (DB_TRX_ID, DATA_TRX_ID)
Definition: trx0types.h:138