15.15.9. Implementing the index_read_idx() Function
The
index_read_idx()
function is identical to the
index_read()
with the exception that index_read_idx()
accepts an additional keynr parameter:
int ha_foo::index_read_idx(byte * buf, uint keynr, const byte * key,
uint key_len, enum ha_rkey_function find_flag)
The keynr parameter specifies the index to be
read, as opposed to index_read where the
index is already set.
As with the index_read() function, the
storage engine must return the row that matches the key
according to the find_flag and set a cursor
for future reads.