February 2018
Intermediate to advanced
510 pages
16h 10m
English
This is the first method call in your storage engine required for creating a new handler instance.
Before the handlerton is defined in the source file, there must be the instantiation method defined in method header. The following is an example from the CSV engine displaying the instantiation method:
static handler* tina_create_handler(TABLE *table);
As you can see in the preceding example, the method accepts a pointer to the table. The handler is responsible for managing and returning the handler object. After the method header definition, the method is named with the method pointer in the create() handlerton element. This identifies the method as being responsible for generating new handler instances when ...
Read now
Unlock full access