Purpose
Signals the storage engine that an index scan is about to occur.
Storage engine should allocate any resources needed.
Synopsis
virtual int index_init
( |
idx, |
|
|
sorted) ; |
|
Description
This is the index_init
method. This
function is called before an index scan, allowing the storage
engine to allocate resources and make preparations.
Parameters
Return Values
Usage
This function can typically just return 0 if there is no
preparation needed.
Default Implementation
{ active_index=idx; return 0; }