Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
1abc6927
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
260
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,发现更多精彩内容 >>
提交
1abc6927
编写于
12月 29, 2020
作者:
G
GuoRentong
提交者:
yefu.chen
12月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update doc: service api
Signed-off-by:
N
GuoRentong
<
rentong.guo@zilliz.com
>
上级
bb8da156
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
250 addition
and
57 deletion
+250
-57
docs/developer_guides/chap03_index_builder.md
docs/developer_guides/chap03_index_builder.md
+36
-9
docs/developer_guides/chap04_message_stream.md
docs/developer_guides/chap04_message_stream.md
+23
-4
docs/developer_guides/chap05_proxy.md
docs/developer_guides/chap05_proxy.md
+15
-10
docs/developer_guides/chap06_master.md
docs/developer_guides/chap06_master.md
+26
-0
docs/developer_guides/chap07_query_service.md
docs/developer_guides/chap07_query_service.md
+61
-34
docs/developer_guides/chap09_data_service.md
docs/developer_guides/chap09_data_service.md
+89
-0
未找到文件。
docs/developer_guides/chap03_index_builder.md
浏览文件 @
1abc6927
...
...
@@ -10,18 +10,42 @@
#### 8.2 API
```
protobuf
```
go
type
Client
interface
{
BuildIndex
(
req
BuildIndexRequest
)
(
BuildIndexResponse
,
error
)
DescribeIndex
(
indexID
UniqueID
)
(
IndexDescription
,
error
)
GetIndexFilePaths
(
indexID
UniqueID
)
(
IndexFilePaths
,
error
)
}
```
*
*BuildIndex*
```
go
type
BuildIndexRequest
struct
{
DataPaths
[]
string
TypeParams
map
[
string
]
string
IndexParams
map
[
string
]
string
}
type
BuildIndexResponse
struct
{
IndexID
UniqueID
}
```
*
*DescribeIndex*
```
go
enum
IndexStatus
{
NONE
=
0
;
UNISSUED
=
1
;
INPROGRESS
=
2
;
FINISHED
=
3
;
}
```
```
go
type
IndexDescription
struct
{
ID
UniqueID
Status
IndexStatus
...
...
@@ -29,12 +53,15 @@ type IndexDescription struct {
ScheduleTime
time
.
Time
BuildCompleteTime
time
.
Time
}
```
type
Client
interface
{
BuildIndex
(
dataPaths
[]
string
,
typeParams
map
[
string
]
string
,
indexParams
map
[
string
]
string
)
(
UniqueID
,
error
)
DescribeIndex
(
indexID
UniqueID
)
(
*
IndexDescription
,
error
)
GetIndexFilePaths
(
indexID
UniqueID
)
([]
string
,
error
)
*
*GetIndexFilePaths*
```
go
type
IndexFilePaths
struct
{
FilePaths
[]
string
}
```
docs/developer_guides/chap04_message_stream.md
浏览文件 @
1abc6927
...
...
@@ -10,8 +10,18 @@
#### 8.2 API
```
go
type
Client
interface
{
CreateChannels
(
req
CreateChannelRequest
)
(
ChannelID
[]
string
,
error
)
DestoryChannels
(
channelID
[]
string
)
error
DescribeChannels
(
channelID
[]
string
)
(
ChannelDescriptions
,
error
)
}
```
*
*CreateChannels*
```
go
type
OwnerDescription
struct
{
Role
string
...
...
@@ -20,14 +30,23 @@ type OwnerDescription struct {
DescriptionText
string
}
type
CreateChannelRequest
struct
{
OwnerDescription
OwnerDescription
numChannels
int
}
```
*
*DescribeChannels*
```
go
type
ChannelDescription
struct
{
Owner
OwnerDescription
}
type
Client
interface
{
CreateChannels
(
ownerDescription
OwnerDescription
,
numChannels
int
)
(
ChannelID
[]
string
,
error
)
DestoryChannels
(
channelID
[]
string
)
error
DescribeChannels
(
channelID
[]
string
)
([]
ChannelDescription
,
error
)
type
ChannelDescriptions
struct
{
Descriptions
[]
ChannelDescription
}
```
docs/developer_guides/chap05_proxy.md
浏览文件 @
1abc6927
...
...
@@ -4,20 +4,25 @@
#### 6.0 Proxy Service API
```
protobuf
message
Credential
{
string
address
//TODO: we should add keys/tokens here
```
go
type
Client
interface
{
GetTimeTickChannel
()
(
string
,
error
)
GetStatsChannel
()
(
string
,
error
)
}
```
message
ProxyInfo
{
common.Status
string
address
int32
port
#### 6.1 Gateway API
```
go
type
ProxyInfo
struct
{
Address
string
Port
int32
}
service
ProxyServi
ce
{
rpc
RegisterLink
(
Credential
)
returns
(
ProxyInfo
){}
//TODO: call IAM
type
Client
interfa
ce
{
RegisterLink
()
(
ProxyInfo
,
error
)
}
```
...
...
docs/developer_guides/chap06_master.md
浏览文件 @
1abc6927
...
...
@@ -2,6 +2,32 @@
## 10. Master
,
#### 10.1 API
```
go
type
Client
interface
{
CreateCollection
(
req
CreateCollectionRequest
)
error
DropCollection
(
req
DropCollectionRequest
)
error
HasCollection
(
req
HasCollectionRequest
)
(
bool
,
error
)
DescribeCollection
(
req
DescribeCollectionRequest
)
(
CollectionDescription
,
error
)
ShowCollections
(
req
ShowCollectionRequest
)
([]
string
,
error
)
CreatePartition
(
req
CreatePartitionRequest
)
error
DropPartition
(
req
DropPartitionRequest
)
error
HasPartition
(
req
HasPartitionRequest
)
(
bool
,
error
)
DescribePartition
(
req
DescribePartitionRequest
)
(
PartitionDescription
,
error
)
ShowPartitions
(
req
ShowPartitionRequest
)
([]
string
,
error
)
AllocTimestamp
(
req
TsoRequest
)
(
TsoResponse
,
error
)
AllocID
(
req
IDRequest
)
(
IDResponse
,
error
)
GetDdChannel
()
(
string
,
error
)
GetTimeTickChannel
()
(
string
,
error
)
GetStatsChannel
()
(
string
,
error
)
}
```
#### 10.1 Interfaces (RPC)
...
...
docs/developer_guides/chap07_query_
nod
e.md
→
docs/developer_guides/chap07_query_
servic
e.md
浏览文件 @
1abc6927
...
...
@@ -10,48 +10,23 @@
#### 8.2 API
```
go
type
Client
interface
{
CreateQueryNodeGroup
(
nodeInstanceType
string
,
numInstances
int
)
(
groupID
UniqueID
,
error
)
Des
toryQueryNodeGroup
(
groupID
UniqueID
)
error
DescribeQueryNodeGroup
(
groupID
UniqueID
)
(
QueryNodeGroupDescription
,
error
)
DescribeParition
(
groupID
UniqueID
,
dbID
UniqueID
,
collID
UniqueID
,
partitionIDs
[]
UniqueID
)
([]
PartitionDescription
,
error
)
CreateQueryChannel
(
groupID
UniqueID
)
(
QueryChannelInfo
,
error
)
LoadPartitions
(
groupID
UniqueID
,
dbID
UniqueID
,
collID
UniqueID
,
partitionIDs
[]
UniqueID
)
error
ReleasePartitions
(
groupID
UniqueID
,
dbID
UniqueID
,
collID
UniqueID
,
PartitionIDs
[]
UniqueID
)
error
DescribeService
()
(
ServiceDescription
,
error
)
Des
cribeParition
(
req
DescribeParitionRequest
)
(
PartitionDescriptions
,
error
)
LoadPartitions
(
req
LoadPartitonRequest
)
error
ReleasePartitions
(
req
ReleasePartitionRequest
)
error
CreateQueryChannel
(
)
(
QueryChannels
,
error
)
GetTimeTickChannel
()
(
string
,
error
)
GetStatsChannel
()
(
string
,
error
)
}
```
####
```
go
// examples of node instance type (nodeInstanceType)
defaultInstanceType
=
"default"
userDefinedInstanceType
=
"custom.instance.type"
ec2StandardInstanceType
=
"c4.2xlarge"
```
*
*DescribeService*
```
go
type
QueryChannelInfo
struct
{
RequestChannel
string
ResultChannel
string
}
```
```
go
type
ResourceCost
struct
{
MemUsage
int64
CpuUsage
float32
}
type
QueryNodeDescription
struct
{
ResourceCost
ResourceCost
}
...
...
@@ -64,7 +39,7 @@ type DbDescription struct {
CollectionDescriptions
[]
CollectionDescription
}
type
QueryNodeGroup
Description
struct
{
type
Service
Description
struct
{
DbDescriptions
map
[
UniqueID
]
DbDescription
NodeDescriptions
map
[
UniqueID
]
QueryNodeDescription
}
...
...
@@ -72,7 +47,15 @@ type QueryNodeGroupDescription struct {
*
*DescribeParition*
```
go
type
DescribeParitionRequest
struct
{
DbID
UniqueID
CollectionID
UniqueID
partitionIDs
[]
UniqueID
}
type
PartitionState
=
int
const
(
...
...
@@ -84,11 +67,55 @@ const (
IN_GPU
PartitionState
=
5
)
type
ResourceCost
struct
{
MemUsage
int64
CpuUsage
float32
}
type
PartitionDescription
struct
{
ID
UniqueID
State
PartitionState
ResourceCost
ResourceCost
}
type
PartitionDescriptions
struct
{
PartitionDescriptions
[]
PartitionDescription
}
```
*
*CreateQueryChannel*
```
go
type
QueryChannels
struct
{
RequestChannel
string
ResultChannel
string
}
```
*
*LoadPartitions*
```
go
type
LoadPartitonRequest
struct
{
DbID
UniqueID
CollectionID
UniqueID
PartitionIDs
[]
UniqueID
}
```
*
*ReleasePartitions*
```
go
type
ReleasePartitionRequest
struct
{
DbID
UniqueID
CollectionID
UniqueID
PartitionIDs
[]
UniqueID
}
```
...
...
docs/developer_guides/chap09_data_service.md
0 → 100644
浏览文件 @
1abc6927
## 8. Data Service
#### 8.1 Overview
#### 8.2 API
```
go
type
Client
interface
{
AssignSegmentID
(
req
AssignSegIDRequest
)
(
AssignSegIDResponse
,
error
)
Flush
(
req
FlushRequest
)
(
error
)
GetInsertBinlogPaths
(
req
InsertBinlogPathRequest
)
(
InsertBinlogPathsResponse
,
error
)
GetInsertChannels
(
req
InsertChannelRequest
)
([]
string
,
error
)
GetTimeTickChannel
()
(
string
,
error
)
GetStatsChannel
()
(
string
,
error
)
}
```
*
*AssignSegmentID*
```
go
type
SegIDRequest
struct
{
Count
uint32
ChannelID
string
CollectionID
UniqueID
PartitionID
UniqueID
}
type
AssignSegIDRequest
struct
{
PerChannelRequest
[]
SegIDRequest
}
type
SegIDAssignment
struct
{
SegID
UniqueID
ChannelID
string
Count
uint32
CollectionID
UniqueID
PartitionID
UniqueID
ExpireTime
Timestamp
}
type
AssignSegIDResponse
struct
{
PerChannelResponse
[]
SegIDAssignment
}
```
*
*Flush*
```
go
type
FlushRequest
struct
{
DbID
UniqueID
CollectionID
UniqueID
}
```
*
*GetInsertBinlogPaths*
```
go
type
InsertBinlogPathRequest
struct
{
segmentID
UniqueID
}
type
InsertBinlogPathsResponse
struct
{
FieldIdxToPaths
map
[
int32
][]
string
}
```
*
*GetInsertChannels*
```
go
type
InsertChannelRequest
struct
{
DbID
UniqueID
CollectionID
UniqueID
}
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录