Public Types | |
enum | { NONE = 0, INDEX, RND } |
Public Member Functions | |
SEAPITesterCursor (drizzled::plugin::StorageEngine &engine_arg, drizzled::Table &table_arg) | |
int | close () |
int | rnd_next (unsigned char *buf) |
int | rnd_pos (unsigned char *buf, unsigned char *pos) |
void | position (const unsigned char *record) |
int | info (uint32_t flag) |
int | reset () |
void | get_auto_increment (uint64_t, uint64_t, uint64_t, uint64_t *, uint64_t *) |
int | doStartTableScan (bool scan) |
int | doEndTableScan () |
const char * | index_type (uint32_t key_number) |
int | doStartIndexScan (uint32_t, bool) |
int | index_read (unsigned char *buf, const unsigned char *key_ptr, uint32_t key_len, drizzled::ha_rkey_function find_flag) |
int | index_read_idx_map (unsigned char *buf, uint32_t index, const unsigned char *key, drizzled::key_part_map keypart_map, drizzled::ha_rkey_function find_flag) |
Positions an index cursor to the index specified in the handle. Fetches the row if available. If the key value is null, begin at the first key of the index. | |
int | index_next (unsigned char *buf) |
int | doEndIndexScan () |
int | index_prev (unsigned char *buf) |
int | index_first (unsigned char *buf) |
int | index_last (unsigned char *buf) |
bool | primary_key_is_clustered () |
int | doOpen (const identifier::Table &identifier, int mode, uint32_t test_if_locked) |
THR_LOCK_DATA ** | store_lock (Session *, THR_LOCK_DATA **to, enum thr_lock_type) |
int | external_lock (Session *session, int lock_type) |
int | doInsertRecord (unsigned char *buf) |
int | doUpdateRecord (const unsigned char *old_row, unsigned char *new_row) |
double | scan_time () |
int | extra (enum ha_extra_function operation) |
plugin::StorageEngine * | getEngine () const |
TableShare * | getShare () |
Table * | getTable () const |
uint64_t | getNextInsertId () |
uint64_t | getAutoIncrement () |
virtual Cursor * | clone (memory::Root *mem_root) |
int | ha_open (const identifier::Table &identifier, int mode, int test_if_locked) |
int | startIndexScan (uint32_t idx, bool sorted) __attribute__((warn_unused_result)) |
int | endIndexScan () |
int | startTableScan (bool scan) __attribute__((warn_unused_result)) |
int | endTableScan () |
int | ha_reset () |
int | ha_index_or_rnd_end () |
int | ha_external_lock (Session *session, int lock_type) |
int | insertRecord (unsigned char *buf) __attribute__((warn_unused_result)) |
int | updateRecord (const unsigned char *old_data, unsigned char *new_data) __attribute__((warn_unused_result)) |
int | deleteRecord (const unsigned char *buf) __attribute__((warn_unused_result)) |
void | ha_release_auto_increment () |
int | ha_check (Session *session, HA_CHECK_OPT *check_opt) |
void | ha_start_bulk_insert (ha_rows rows) |
int | ha_end_bulk_insert () |
int | ha_delete_all_rows () |
int | ha_reset_auto_increment (uint64_t value) |
int | ha_analyze (Session *session, HA_CHECK_OPT *check_opt) |
int | ha_disable_indexes (uint32_t mode) |
int | ha_enable_indexes (uint32_t mode) |
int | ha_discard_or_import_tablespace (bool discard) |
void | closeMarkForDelete (const char *name) |
void | adjust_next_insert_id_after_explicit_value (uint64_t nr) |
int | update_auto_increment () |
virtual double | read_time (uint32_t, uint32_t ranges, ha_rows rows) |
virtual double | index_only_read_time (uint32_t keynr, double records) |
virtual ha_rows | multi_range_read_info_const (uint32_t keyno, RANGE_SEQ_IF *seq, void *seq_init_param, uint32_t n_ranges, uint32_t *bufsz, uint32_t *flags, optimizer::CostVector *cost) |
virtual int | multi_range_read_info (uint32_t keyno, uint32_t n_ranges, uint32_t keys, uint32_t *bufsz, uint32_t *flags, optimizer::CostVector *cost) |
virtual int | multi_range_read_init (RANGE_SEQ_IF *seq, void *seq_init_param, uint32_t n_ranges, uint32_t mode) |
virtual int | multi_range_read_next (char **range_info) |
virtual const key_map * | keys_to_use_for_scanning () |
bool | has_transactions () |
virtual bool | is_fatal_error (int error, uint32_t flags) |
virtual ha_rows | records () |
virtual uint64_t | tableSize () |
virtual uint64_t | rowSize () |
virtual ha_rows | estimate_rows_upper_bound () |
uint32_t | get_index (void) const |
virtual int | index_read_map (unsigned char *buf, const unsigned char *key, key_part_map keypart_map, enum ha_rkey_function find_flag) |
Positions an index cursor to the index specified in the handle. Fetches the row if available. If the key value is null, begin at the first key of the index. | |
virtual int | index_next_same (unsigned char *, const unsigned char *, uint32_t) |
virtual int | index_read_last_map (unsigned char *buf, const unsigned char *key, key_part_map keypart_map) |
The following functions works like index_read, but it find the last row with the current key value or prefix. | |
virtual int | read_range_first (const key_range *start_key, const key_range *end_key, bool eq_range, bool sorted) |
virtual int | read_range_next () |
int | compare_key (key_range *range) |
virtual int | read_first_row (unsigned char *buf, uint32_t primary_key) |
virtual int | rnd_same (unsigned char *, uint32_t) |
virtual ha_rows | records_in_range (uint32_t, key_range *, key_range *) |
virtual uint32_t | calculate_key_hash_value (Field **) |
virtual int | extra_opt (enum ha_extra_function operation, uint32_t) |
virtual bool | was_semi_consistent_read () |
virtual void | try_semi_consistent_read (bool) |
virtual void | unlock_row (void) |
void | set_next_insert_id (uint64_t id) |
void | restore_auto_increment (uint64_t prev_insert_id) |
virtual int | indexes_are_disabled (void) |
virtual void | append_create_info (String *) |
virtual char * | get_foreign_key_create_info (void) |
virtual bool | can_switch_engines (void) |
virtual int | get_foreign_key_list (Session *, List< ForeignKeyInfo > *) |
virtual uint32_t | referenced_by_foreign_key () |
virtual void | free_foreign_key_create_info (char *) |
virtual int | cmp_ref (const unsigned char *ref1, const unsigned char *ref2) |
virtual bool | isOrdered (void) |
Public Attributes | |
drizzled::Cursor * | realCursor |
unsigned char * | ref |
unsigned char * | dup_ref |
ha_statistics | stats |
range_seq_t | mrr_iter |
RANGE_SEQ_IF | mrr_funcs |
uint32_t | ranges_in_seq |
bool | mrr_is_output_sorted |
bool | mrr_have_range |
bool | eq_range |
KEY_MULTI_RANGE | mrr_cur_range |
key_range | save_end_range |
key_range * | end_range |
KeyPartInfo * | range_key_part |
int | key_compare_result_on_equal |
uint32_t | errkey |
uint32_t | key_used_on_scan |
uint32_t | active_index |
uint32_t | ref_length |
enum drizzled::Cursor:: { ... } | inited |
bool | locked |
uint64_t | next_insert_id |
uint64_t | insert_id_for_cur_row |
Discrete_interval | auto_inc_interval_for_cur_row |
Protected Member Functions | |
void | ha_statistic_increment (uint64_t system_status_var::*offset) const |
void ** | ha_data (Session *) const |
Protected Attributes | |
ha_rows | estimation_rows_to_insert |
Private Member Functions | |
void | CURSOR_NEW_STATE (const string &new_state) |
Private Attributes | |
string | cursor_state |
Session * | user_session |
Friends | |
class | drizzled::Cursor |
Definition at line 148 of file storage_engine_api_tester.cc.
virtual bool drizzled::Cursor::can_switch_engines | ( | void | ) | [inline, virtual, inherited] |
used in ALTER Table; if changing storage engine is allowed. e.g. not be allowed if table has foreign key constraints in engine.
Reimplemented in ha_innobase.
Definition at line 463 of file cursor.h.
Referenced by drizzled::internal_alter_table().
void drizzled::Cursor::closeMarkForDelete | ( | const char * | name | ) | [inherited] |
Drop table in the engine: public interface.
Definition at line 799 of file cursor.cc.
References drizzled::Cursor::setTransactionReadWrite().
int drizzled::Cursor::compare_key | ( | key_range * | range | ) | [inherited] |
Compare if found key (in row) is over max-value.
range | range to compare to row. May be 0 for no range |
key.cc::key_cmp()
Definition at line 1256 of file cursor.cc.
References drizzled::key_cmp().
Referenced by drizzled::Cursor::read_range_first(), and drizzled::Cursor::read_range_next().
int drizzled::SEAPITesterCursor::doStartTableScan | ( | bool | scan | ) | [inline, virtual] |
doStartTableScan() can be called two times without doEndTableScan() in between (it only makes sense if scan=1). then the second call should prepare for the new table scan (e.g if rnd_init allocates the cursor, second call should position it to the start of the table, no need to deallocate and allocate it again
Implements drizzled::Cursor.
Definition at line 182 of file storage_engine_api_tester.cc.
virtual ha_rows drizzled::Cursor::estimate_rows_upper_bound | ( | void | ) | [inline, virtual, inherited] |
Return upper bound of current number of records in the table (max. of how many records one will retrieve when doing a full table scan) If upper bound is not known, HA_POS_ERROR should be returned as a max possible upper bound.
Reimplemented in FunctionCursor, and ha_innobase.
Definition at line 318 of file cursor.h.
Referenced by drizzled::FileSort::run().
int drizzled::SEAPITesterCursor::external_lock | ( | Session * | , |
int | |||
) | [virtual] |
Is not invoked for non-transactional temporary tables.
Tells the storage engine that we intend to read or write data from the table. This call is prefixed with a call to Cursor::store_lock() and is invoked only for those Cursor instances that stored the lock.
Calls to rnd_init/index_init are prefixed with this call. When table IO is complete, we call external_lock(F_UNLCK). A storage engine writer should expect that each call to ::external_lock(F_[RD|WR]LOCK is followed by a call to ::external_lock(F_UNLCK). If it is not, it is a bug in MySQL.
The name and signature originate from the first implementation in MyISAM, which would call fcntl to set/clear an advisory lock on the data file in this method.
lock_type | F_RDLCK, F_WRLCK, F_UNLCK |
Reimplemented from drizzled::Cursor.
Definition at line 401 of file storage_engine_api_tester.cc.
virtual char* drizzled::Cursor::get_foreign_key_create_info | ( | void | ) | [inline, virtual, inherited] |
If index == MAX_KEY then a check for table is made and if index < MAX_KEY then a check is made if the table has foreign keys and if a foreign key uses this index (and thus the index cannot be dropped).
index | Index to check if foreign key uses it |
true | Foreign key defined on table or index |
false | No foreign key defined |
Reimplemented in ha_innobase.
virtual int drizzled::Cursor::get_foreign_key_list | ( | Session * | , |
List< ForeignKeyInfo > * | |||
) | [inline, virtual, inherited] |
used in REPLACE; is > 0 if table is referred by a FOREIGN KEY
Reimplemented in ha_innobase.
uint64_t drizzled::Cursor::getAutoIncrement | ( | ) | [inline, inherited] |
int drizzled::Cursor::ha_analyze | ( | Session * | session, |
HA_CHECK_OPT * | check_opt | ||
) | [inherited] |
Analyze table: public interface.
Definition at line 741 of file cursor.cc.
References drizzled::Cursor::setTransactionReadWrite().
int drizzled::Cursor::ha_check | ( | Session * | session, |
HA_CHECK_OPT * | check_opt | ||
) | [inherited] |
to be actually called to get 'check()' functionality
Performs checks upon the table.
session | thread doing CHECK Table operation |
check_opt | options from the parser |
int drizzled::Cursor::ha_delete_all_rows | ( | ) | [inherited] |
Delete all rows: public interface.
This is now equalivalent to TRUNCATE TABLE.
Trigger post-truncate notification to plugins...
Definition at line 696 of file cursor.cc.
References drizzled::Cursor::delete_all_rows(), drizzled::Table::in_use, drizzled::Cursor::setTransactionReadWrite(), drizzled::TransactionServices::singleton(), and drizzled::TransactionServices::truncateTable().
Referenced by drizzled::select_union::cleanup(), and drizzled::delete_query().
int drizzled::Cursor::ha_disable_indexes | ( | uint32_t | mode | ) | [inherited] |
Disable indexes: public interface.
Definition at line 755 of file cursor.cc.
References drizzled::Cursor::setTransactionReadWrite().
Referenced by drizzled::alter_table_manage_keys(), and drizzled::internal_alter_table().
int drizzled::Cursor::ha_discard_or_import_tablespace | ( | bool | discard | ) | [inherited] |
Discard or import tablespace: public interface.
Definition at line 785 of file cursor.cc.
References drizzled::Cursor::setTransactionReadWrite().
int drizzled::Cursor::ha_enable_indexes | ( | uint32_t | mode | ) | [inherited] |
Enable indexes: public interface.
Definition at line 770 of file cursor.cc.
References drizzled::Cursor::setTransactionReadWrite().
Referenced by drizzled::alter_table_manage_keys(), and drizzled::internal_alter_table().
int drizzled::Cursor::ha_external_lock | ( | Session * | session, |
int | lock_type | ||
) | [inherited] |
These functions represent the public interface to *users* of the Cursor class, hence they are *not* virtual. For the inheritance interface, see the (private) functions doInsertRecord(), doUpdateRecord(), and doDeleteRecord() below.
Definition at line 1387 of file cursor.cc.
References drizzled::Cursor::external_lock(), and drizzled::Cursor::next_insert_id.
int drizzled::Cursor::ha_open | ( | const identifier::Table & | identifier, |
int | mode, | ||
int | test_if_locked | ||
) | [inherited] |
Open database-Cursor.
Try O_RDONLY if cannot open as O_RDWR Don't wait for locks if not HA_OPEN_WAIT_IF_LOCKED is set
Definition at line 223 of file cursor.cc.
References drizzled::Table::db_stat, and drizzled::Cursor::ref_length.
void drizzled::Cursor::ha_release_auto_increment | ( | ) | [inherited] |
Reserves an interval of auto_increment values from the Cursor.
offset and increment means that we want values to be of the form offset + N * increment, where N>=0 is integer. If the function sets *first_value to ~(uint64_t)0 it means an error. If the function sets *nb_reserved_values to UINT64_MAX it means it has reserved to "positive infinite".
offset | |
increment | |
nb_desired_values | how many values we want |
first_value | (OUT) the first value reserved by the Cursor |
nb_reserved_values | (OUT) how many values the Cursor reserved |
Definition at line 608 of file cursor.cc.
References drizzled::Cursor::auto_inc_interval_for_cur_row, drizzled::Session::auto_inc_intervals_forced, drizzled::Table::in_use, drizzled::Cursor::insert_id_for_cur_row, and drizzled::Cursor::next_insert_id.
Referenced by drizzled::insert_query().
int drizzled::Cursor::ha_reset | ( | ) | [inherited] |
Check Cursor usage and reset state of file to after 'open'
Definition at line 1449 of file cursor.cc.
References drizzled::Cursor::reset().
Referenced by drizzled::Session::free_cached_table(), and drizzled::Session::mark_used_tables_as_free_for_reuse().
int drizzled::Cursor::ha_reset_auto_increment | ( | uint64_t | value | ) | [inherited] |
Reset auto increment: public interface.
Definition at line 726 of file cursor.cc.
References drizzled::Cursor::reset_auto_increment(), and drizzled::Cursor::setTransactionReadWrite().
Referenced by drizzled::delete_query().
double drizzled::Cursor::index_only_read_time | ( | uint32_t | keynr, |
double | key_records | ||
) | [virtual, inherited] |
Calculate cost of 'index only' scan for given index and number of records
keynr | Index number |
records | Estimated number of records to be retrieved |
Definition at line 882 of file cursor.cc.
References drizzled::Table::key_info, and drizzled::Cursor::ref_length.
Referenced by drizzled::best_access_path(), drizzled::Cursor::multi_range_read_info(), and drizzled::Cursor::multi_range_read_info_const().
bool drizzled::Cursor::is_fatal_error | ( | int | error, |
uint32_t | flags | ||
) | [virtual, inherited] |
This method is used to analyse the error to see whether the error is ignorable or not, certain handlers can have more error that are ignorable than others. E.g. the partition Cursor can get inserts into a range where there is no partition and this is an ignorable error. HA_ERR_FOUND_DUP_UNIQUE is a special case in MyISAM that means the same thing as HA_ERR_FOUND_DUP_KEY but can in some cases lead to a slightly different error message.
Definition at line 197 of file cursor.cc.
Referenced by drizzled::update_query().
int drizzled::Cursor::multi_range_read_info | ( | uint32_t | keyno, |
uint32_t | n_ranges, | ||
uint32_t | n_rows, | ||
uint32_t * | bufsz, | ||
uint32_t * | flags, | ||
optimizer::CostVector * | cost | ||
) | [virtual, inherited] |
Get cost and other information about MRR scan over some sequence of ranges
Calculate estimated cost and other information about an MRR scan for some sequence of ranges.
The ranges themselves will be known only at execution phase. When this function is called we only know number of ranges and a (rough) E(records) within those ranges.
Currently this function is only called for "n-keypart singlepoint" ranges, i.e. each range is "keypart1=someconst1 AND ... AND keypartN=someconstN"
The flags parameter is a combination of those flags: HA_MRR_SORTED, HA_MRR_INDEX_ONLY, HA_MRR_NO_ASSOCIATION, HA_MRR_LIMITS.
keyno | Index number |
n_ranges | Estimated number of ranges (i.e. intervals) in the range sequence. |
n_rows | Estimated total number of records contained within all of the ranges |
bufsz | INOUT IN: Size of the buffer available for use OUT: Size of the buffer that will be actually used, or 0 if buffer is not needed. |
flags | INOUT A combination of HA_MRR_* flags |
cost | OUT Estimated cost of MRR access |
0 | OK, *cost contains cost of the scan, *bufsz and *flags contain scan parameters. |
other | Error or can't perform the requested scan |
Definition at line 1014 of file cursor.cc.
References drizzled::Cursor::index_only_read_time().
ha_rows drizzled::Cursor::multi_range_read_info_const | ( | uint32_t | keyno, |
RANGE_SEQ_IF * | seq, | ||
void * | seq_init_param, | ||
uint32_t | n_ranges, | ||
uint32_t * | bufsz, | ||
uint32_t * | flags, | ||
optimizer::CostVector * | cost | ||
) | [virtual, inherited] |
Get cost and other information about MRR scan over a known list of ranges
Calculate estimated cost and other information about an MRR scan for given sequence of ranges.
keyno | Index number |
seq | Range sequence to be traversed |
seq_init_param | First parameter for seq->init() |
n_ranges_arg | Number of ranges in the sequence, or 0 if the caller can't efficiently determine it |
bufsz | INOUT IN: Size of the buffer available for use OUT: Size of the buffer that is expected to be actually used, or 0 if buffer is not needed. |
flags | INOUT A combination of HA_MRR_* flags |
cost | OUT Estimated cost of MRR access |
HA_POS_ERROR | Error or the engine is unable to perform the requested scan. Values of OUT parameters are undefined. |
other | OK, *cost contains cost of the scan, *bufsz and *flags contain scan parameters. |
Definition at line 927 of file cursor.cc.
References drizzled::Cursor::index_only_read_time(), and TIME_FOR_COMPARE.
int drizzled::Cursor::multi_range_read_init | ( | RANGE_SEQ_IF * | seq_funcs, |
void * | seq_init_param, | ||
uint32_t | n_ranges, | ||
uint32_t | mode | ||
) | [virtual, inherited] |
Initialize the MRR scan
Initialize the MRR scan. This function may do heavyweight scan initialization like row prefetching/sorting/etc (NOTE: but better not do it here as we may not need it, e.g. if we never satisfy WHERE clause on previous tables. For many implementations it would be natural to do such initializations in the first multi_read_range_next() call)
mode is a combination of the following flags: HA_MRR_SORTED, HA_MRR_INDEX_ONLY, HA_MRR_NO_ASSOCIATION
seq | Range sequence to be traversed |
seq_init_param | First parameter for seq->init() |
n_ranges | Number of ranges in the sequence |
mode | Flags, see the description section for the details |
buf | INOUT: memory buffer to be used |
Until WL#2623 is done (see its text, section 3.2), the following will also hold: The caller will guarantee that if "seq->init == mrr_ranges_array_init" then seq_init_param is an array of n_ranges KEY_MULTI_RANGE structures. This property will only be used by NDB Cursor until WL#2623 is done.
Buffer memory management is done according to the following scenario: The caller allocates the buffer and provides it to the callee by filling the members of HANDLER_BUFFER structure. The callee consumes all or some fraction of the provided buffer space, and sets the HANDLER_BUFFER members accordingly. The callee may use the buffer memory until the next multi_range_read_init() call is made, all records have been read, or until doEndIndexScan() call is made, whichever comes first.
0 | OK |
1 | Error |
Definition at line 1075 of file cursor.cc.
References drizzled::Cursor::mrr_have_range, and drizzled::Cursor::mrr_iter.
int drizzled::Cursor::multi_range_read_next | ( | char ** | range_info | ) | [virtual, inherited] |
Get next record in MRR scan
Default MRR implementation: read the next record
range_info | OUT Undefined if HA_MRR_NO_ASSOCIATION flag is in effect Otherwise, the opaque value associated with the range that contains the returned record. |
0 | OK |
other | Error code |
Definition at line 1100 of file cursor.cc.
References drizzled::Cursor::mrr_cur_range, drizzled::Cursor::mrr_have_range, drizzled::Cursor::mrr_iter, drizzled::Cursor::read_range_first(), drizzled::Cursor::read_range_next(), and drizzled::Cursor::was_semi_consistent_read().
int drizzled::Cursor::read_first_row | ( | unsigned char * | buf, |
uint32_t | primary_key | ||
) | [virtual, inherited] |
int drizzled::Cursor::read_range_first | ( | const key_range * | start_key, |
const key_range * | end_key, | ||
bool | eq_range_arg, | ||
bool | sorted | ||
) | [virtual, inherited] |
Read first row between two ranges.
start_key | Start key. Is 0 if no min range |
end_key | End key. Is 0 if no max range |
eq_range_arg | Set to 1 if start_key == end_key |
sorted | Set to 1 if result should be sorted per key |
0 | Found row |
HA_ERR_END_OF_FILE | No rows in range |
\:: | Error code |
Reimplemented in ha_innobase, and ha_myisam.
Definition at line 1176 of file cursor.cc.
References drizzled::Cursor::compare_key(), drizzled::Cursor::index_read_map(), drizzled::Table::key_info, and drizzled::Cursor::save_end_range.
Referenced by drizzled::Cursor::multi_range_read_next().
int drizzled::Cursor::read_range_next | ( | ) | [virtual, inherited] |
Read next row between two endpoints.
0 | Found row |
HA_ERR_END_OF_FILE | No rows in range |
\:: | Error code |
Reimplemented in ha_innobase, and ha_myisam.
Definition at line 1223 of file cursor.cc.
References drizzled::Cursor::compare_key().
Referenced by drizzled::Cursor::multi_range_read_next().
ha_rows drizzled::Cursor::records | ( | ) | [virtual, inherited] |
int drizzled::SEAPITesterCursor::reset | ( | void | ) | [virtual] |
Reset state of file to after 'open'. This function is called after every statement for all tables used by that statement.
Reimplemented from drizzled::Cursor.
Definition at line 271 of file storage_engine_api_tester.cc.
THR_LOCK_DATA ** drizzled::SEAPITesterCursor::store_lock | ( | Session * | , |
THR_LOCK_DATA ** | to, | ||
enum thr_lock_type | |||
) | [virtual] |
Is not invoked for non-transactional temporary tables.
Reimplemented from drizzled::Cursor.
Definition at line 411 of file storage_engine_api_tester.cc.
virtual void drizzled::Cursor::try_semi_consistent_read | ( | bool | ) | [inline, virtual, inherited] |
Tell the engine whether it should avoid unnecessary lock waits. If yes, in an UPDATE or DELETE, if the row under the cursor was locked by another transaction, the engine may try an optimistic read of the last committed row value under the cursor.
Reimplemented in ha_innobase.
Definition at line 416 of file cursor.h.
Referenced by drizzled::update_query().
virtual bool drizzled::Cursor::was_semi_consistent_read | ( | void | ) | [inline, virtual, inherited] |
In an UPDATE or DELETE, if the row under the cursor was locked by another transaction, and the engine used an optimistic read of the last committed row value under the cursor, then the engine returns 1 from this function. MySQL must NOT try to update this optimistic value. If the optimistic value does not match the WHERE condition, MySQL can decide to skip over this row. Currently only works for InnoDB. This can be used to avoid unnecessary lock waits.
If this method returns nonzero, it will also signal the storage engine that the next read will be a locking re-read of the row.
Reimplemented in ha_innobase.
Definition at line 409 of file cursor.h.
Referenced by drizzled::Cursor::multi_range_read_next(), and drizzled::update_query().
Interval returned by get_auto_increment() and being consumed by the inserter.
Definition at line 224 of file cursor.h.
Referenced by drizzled::Cursor::ha_release_auto_increment().
uint64_t drizzled::Cursor::insert_id_for_cur_row [inherited] |
insert id for the current row (*autogenerated*; if not autogenerated, it's 0). At first successful insertion, this variable is stored into Session::first_successful_insert_id_in_cur_stmt.
Definition at line 219 of file cursor.h.
Referenced by drizzled::Cursor::ha_release_auto_increment().
KEY_MULTI_RANGE drizzled::Cursor::mrr_cur_range [inherited] |
Current range (the one we're now returning rows from)
Definition at line 175 of file cursor.h.
Referenced by drizzled::Cursor::multi_range_read_next().
bool drizzled::Cursor::mrr_have_range [inherited] |
true <=> we're currently traversing a range in mrr_cur_range.
Definition at line 170 of file cursor.h.
Referenced by drizzled::Cursor::multi_range_read_init(), and drizzled::Cursor::multi_range_read_next().
range_seq_t drizzled::Cursor::mrr_iter [inherited] |
MultiRangeRead-related members:
Definition at line 162 of file cursor.h.
Referenced by drizzled::Cursor::multi_range_read_init(), and drizzled::Cursor::multi_range_read_next().
uint64_t drizzled::Cursor::next_insert_id [inherited] |
next_insert_id is the next value which should be inserted into the auto_increment column: in a inserting-multi-row statement (like INSERT SELECT), for the first row where the autoinc value is not specified by the statement, get_auto_increment() called and asked to generate a value, next_insert_id is set to the next value, then for all other rows next_insert_id is used (and increased each time) without calling get_auto_increment().
Definition at line 199 of file cursor.h.
Referenced by drizzled::Cursor::ha_external_lock(), and drizzled::Cursor::ha_release_auto_increment().
uint32_t drizzled::Cursor::ref_length [inherited] |
Length of ref (1-8 or the clustered key length)
Definition at line 186 of file cursor.h.
Referenced by ha_innobase::doOpen(), drizzled::Cursor::ha_open(), drizzled::Cursor::index_only_read_time(), ha_innobase::position(), drizzled::optimizer::QuickIndexMergeSelect::read_keys_and_merge(), ha_innobase::rnd_pos(), drizzled::FileSort::run(), and drizzled::update_query().
key_range drizzled::Cursor::save_end_range [inherited] |
The following are for read_range()
Definition at line 178 of file cursor.h.
Referenced by drizzled::Cursor::read_range_first().