Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
16ff16b2
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,发现更多精彩内容 >>
提交
16ff16b2
编写于
1月 16, 2021
作者:
F
FluorineDog
提交者:
yefu.chen
1月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Renaming and add load index api beta
Signed-off-by:
N
FluorineDog
<
guilin.gou@zilliz.com
>
上级
f02bd8c8
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
34 addition
and
18 deletion
+34
-18
internal/core/src/common/LoadInfo.h
internal/core/src/common/LoadInfo.h
+7
-1
internal/core/src/segcore/SegmentGrowing.h
internal/core/src/segcore/SegmentGrowing.h
+1
-1
internal/core/src/segcore/SegmentSealed.h
internal/core/src/segcore/SegmentSealed.h
+16
-13
internal/core/src/segcore/load_index_c.cpp
internal/core/src/segcore/load_index_c.cpp
+1
-1
internal/core/src/segcore/segment_c.cpp
internal/core/src/segcore/segment_c.cpp
+1
-1
internal/core/unittest/CMakeLists.txt
internal/core/unittest/CMakeLists.txt
+1
-0
internal/core/unittest/test_c_api.cpp
internal/core/unittest/test_c_api.cpp
+1
-1
internal/core/unittest/test_load.cpp
internal/core/unittest/test_load.cpp
+6
-0
未找到文件。
internal/core/src/common/LoadIn
dex
.h
→
internal/core/src/common/LoadIn
fo
.h
浏览文件 @
16ff16b2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#include <string>
#include <string>
#include <map>
#include <map>
#include "
../index/knowhere/
knowhere/index/vector_index/VecIndex.h"
#include "knowhere/index/vector_index/VecIndex.h"
struct
LoadIndexInfo
{
struct
LoadIndexInfo
{
std
::
string
field_name
;
std
::
string
field_name
;
...
@@ -21,3 +21,9 @@ struct LoadIndexInfo {
...
@@ -21,3 +21,9 @@ struct LoadIndexInfo {
std
::
map
<
std
::
string
,
std
::
string
>
index_params
;
std
::
map
<
std
::
string
,
std
::
string
>
index_params
;
milvus
::
knowhere
::
VecIndexPtr
index
;
milvus
::
knowhere
::
VecIndexPtr
index
;
};
};
struct
LoadFieldDataInfo
{
int64_t
field_id
;
void
*
blob
;
int64_t
row_count
;
};
internal/core/src/segcore/SegmentGrowing.h
浏览文件 @
16ff16b2
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "query/deprecated/GeneralQuery.h"
#include "query/deprecated/GeneralQuery.h"
#include "query/Plan.h"
#include "query/Plan.h"
#include "common/LoadIn
dex
.h"
#include "common/LoadIn
fo
.h"
#include "segcore/SegmentInterface.h"
#include "segcore/SegmentInterface.h"
namespace
milvus
{
namespace
milvus
{
...
...
internal/core/src/segcore/SegmentSealed.h
浏览文件 @
16ff16b2
...
@@ -10,17 +10,20 @@
...
@@ -10,17 +10,20 @@
// or implied. See the License for the specific language governing permissions and limitations under the License
// or implied. See the License for the specific language governing permissions and limitations under the License
#include "SegmentInterface.h"
#include "SegmentInterface.h"
#include "common/LoadInfo.h"
// class SegmentSealed : public SegmentInternalInterface {
namespace
milvus
::
segcore
{
// public:
// const Schema& get_schema() = 0;
class
SegmentSealed
{
// int64_t get_num_chunk() = 0;
public:
//
virtual
const
Schema
&
// explicit SegmentSealed(SchemaPtr schema);
get_schema
()
=
0
;
// void set_size();
virtual
int64_t
// void load_data(FieldId field_id, void* blob, int64_t blob_size);
get_row_count
()
=
0
;
//
virtual
void
//
LoadIndex
(
const
LoadIndexInfo
&
info
)
=
0
;
// private:
virtual
void
// SchemaPtr schema_;
LoadFieldData
(
const
LoadFieldDataInfo
&
info
)
=
0
;
// }
};
}
// namespace milvus::segcore
internal/core/src/segcore/load_index_c.cpp
浏览文件 @
16ff16b2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#include "index/knowhere/knowhere/common/BinarySet.h"
#include "index/knowhere/knowhere/common/BinarySet.h"
#include "index/knowhere/knowhere/index/vector_index/VecIndexFactory.h"
#include "index/knowhere/knowhere/index/vector_index/VecIndexFactory.h"
#include "segcore/load_index_c.h"
#include "segcore/load_index_c.h"
#include "common/LoadIn
dex
.h"
#include "common/LoadIn
fo
.h"
#include "utils/EasyAssert.h"
#include "utils/EasyAssert.h"
CStatus
CStatus
...
...
internal/core/src/segcore/segment_c.cpp
浏览文件 @
16ff16b2
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include <knowhere/index/vector_index/VecIndexFactory.h>
#include <knowhere/index/vector_index/VecIndexFactory.h>
#include <cstdint>
#include <cstdint>
#include <boost/concept_check.hpp>
#include <boost/concept_check.hpp>
#include "common/LoadIn
dex
.h"
#include "common/LoadIn
fo
.h"
CSegmentBase
CSegmentBase
NewSegment
(
CCollection
collection
,
uint64_t
segment_id
)
{
NewSegment
(
CCollection
collection
,
uint64_t
segment_id
)
{
...
...
internal/core/unittest/CMakeLists.txt
浏览文件 @
16ff16b2
...
@@ -18,6 +18,7 @@ set(MILVUS_TEST_FILES
...
@@ -18,6 +18,7 @@ set(MILVUS_TEST_FILES
test_reduce.cpp
test_reduce.cpp
test_interface.cpp
test_interface.cpp
test_span.cpp
test_span.cpp
test_load.cpp
)
)
add_executable
(
all_tests
add_executable
(
all_tests
${
MILVUS_TEST_FILES
}
${
MILVUS_TEST_FILES
}
...
...
internal/core/unittest/test_c_api.cpp
浏览文件 @
16ff16b2
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include <index/knowhere/knowhere/index/vector_index/adapter/VectorAdapter.h>
#include <index/knowhere/knowhere/index/vector_index/adapter/VectorAdapter.h>
#include <index/knowhere/knowhere/index/vector_index/VecIndexFactory.h>
#include <index/knowhere/knowhere/index/vector_index/VecIndexFactory.h>
#include <index/knowhere/knowhere/index/vector_index/IndexIVFPQ.h>
#include <index/knowhere/knowhere/index/vector_index/IndexIVFPQ.h>
#include <common/LoadIn
dex
.h>
#include <common/LoadIn
fo
.h>
#include <utils/Types.h>
#include <utils/Types.h>
#include <segcore/Collection.h>
#include <segcore/Collection.h>
#include "test_utils/DataGen.h"
#include "test_utils/DataGen.h"
...
...
internal/core/unittest/test_load.cpp
0 → 100644
浏览文件 @
16ff16b2
#include <gtest/gtest.h>
#include "segcore/SegmentSealed.h"
TEST
(
Load
,
Naive
)
{
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录