Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
09fe8b63
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
09fe8b63
编写于
10月 07, 2021
作者:
X
Xiaofan
提交者:
GitHub
10月 07, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[skip ci]Add document for sealed segment variable and functions (#9364)
Signed-off-by:
N
xiaofan-luan
<
xiaofan.luan@zilliz.com
>
上级
85f5e079
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
2 deletion
+30
-2
docs/design_docs/segcore/segment_sealed.md
docs/design_docs/segcore/segment_sealed.md
+30
-2
未找到文件。
docs/design_docs/segcore/segment_sealed.md
浏览文件 @
09fe8b63
# SegmentSealed
SegmentSealed has extra interface rather than segment_inferface:
1.
`LoadIndex(loadIndexInfo)`
: load the index. indexInfo contain
t
s
1.
`LoadIndex(loadIndexInfo)`
: load the index. indexInfo contains
1.
`FieldId`
2.
`IndexParams`
: index paramters in KV structure KV
3.
`VecIndex`
: vector index
...
...
@@ -10,4 +10,32 @@ SegmentSealed has extra interface rather than segment_inferface:
3.
`DropIndex(fieldId)`
: drop and release exist index of specified field
4.
`DropFieldData(fieldId)`
: drop and release exist data for specified field
Search is executatble as long as all the column involved in the search are loaded.
\ No newline at end of file
Search is executatble as long as all the column involved in the search are loaded.
# SegmentSealedImpl internal data definition
1.
`row_count_opt_`
:
1.
Fill row count when load the first entity
2.
All the other column loaded must match the same row count
3.
`xxx_ready_bitset_`
`system_ready_count_`
1.
Used to record whether the corresponding column is loaded. Bitset corresponds to FieldOffset
2.
Query is executatble If and only if the following conditions are met:
1.
system_ready_count_ == 2, which means all the system column RowId/Timestamp is loaded
2.
The scalar columns involved in the query has been loaded
3.
For the vector columns involved in the query, either the original data or the index is loaded
4.
`scalar_indexings_`
: Store scalar index
1.
Use StructuredSortedIndex in knowhere
5.
`primary_key_index_`
: store index for pk column
1.
Use brand new ScalarIndexBase format
2.
**Note,The functions here may overlap with scalar indexes. It is recommended to replace scalar index with ScalarIndexBase**
6.
`field_datas_`
: store original data
1.
`aligned_vector<char>`
format ganruatee
`int/float`
data are aligned
7.
`SealedIndexingRecord vecindexs_`
: store vector index
8.
`row_ids_/timestamps_`
: RowId/Timestamp data
9.
`TimestampIndex`
: Index for Timestamp column
10.
`schema`
: schema
# SegmentSealedImpl internal function dafinion
1.
Most functions are the implementation of the corresponding functions of segment interface, which will not be repeated here
2.
`update_row_count`
: Used to update the row_count field
3.
`mask_with_timestamps`
: Use Timestamp column to update search bitmask,used to support Time Travel function
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录