移动云海山数据库(He3DB)MySQL关键类之Handler

1.class handler :public Sql_alloc 在sql/handler.h中

总体介绍 The handler class is the interface for dynamically loadable storage engines. Functions in this class accept and return table columns data. TableRecordFormat 和 KeyTupleFormat

1.1继承自Sql_alloc 在sql_alloc.h文件中

MySQL standard memory allocator class. You have to inherit the class in order to use it.

1.2关键成员

TABLE *table 正在打开的表格
handlerton handler真正调用的存储引擎
MRR 多范围读取 https://cloud.tencent.com/developer/article/2343999

•MultiRangeRead MRR

1.3关键成员

MySQL的batch模式,其实也就是批处理模式

1.4ha_* 方法蔟

私有虚拟API的包裹方法 具体的方法实现在handler.cc中

get_foreign_dup_key(char *child_table_name, uint child_table_name_len, char *child_key_name, uint child_key_name_len)