15.14.1. Implementing the position()
Function
The
position()
function is called after every call to
rnd_next()
if the data needs to be
reordered:
void ha_foo::position(const byte *record)
The contents of *record
are up to you —
whatever value you provide will be returned in a later call to
retrieve the row. Most storage engines will store some form of
offset or primary key value.