| 1234567891011121314151617181920 |
- package index
- import (
- "git.ycl.pub/yl32940/TsDB2/DB/core/page"
- )
- func init() {
- Compose.RegisterHandler(page.IndexTypeCompose, &ComposeChainHandler{})
- }
- // ======================== IndexHandler: 复合二级索引处理器 ========================
- // ComposeChainHandler — 复合二级索引 (page.IndexTypeCompose)
- // 底层即 B+ 树二级索引: IndexHandler 的 5 个方法与 InsertBatch 全部由嵌入的
- // sbtSecondary 基座提供 (与 BTreeHandler 共享 btree.SBT* 实现), 条目格式
- // [key(keyLen) + PKID(8B BE)], keyLen = 各分量按真实宽度定长拼接的总长
- // (分量不限 8 字节, 与 BTree 复合键一致); 二级索引不实现 RowStoreHandler。
- // InsertBatch 随基座而来: 复合索引的批量写入自动走排序批量灌叶路径,
- // 不再退化为逐条 Insert (IndexMetaPage.InsertRows 的 BatchInserter 分发)。
- type ComposeChainHandler struct{ sbtSecondary }
|