mirror of https://github.com/milvus-io/milvus.git
Update proto for coord's design in docs (#8294)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/8064/head
parent
6345d05bf4
commit
dd963189ee
|
@ -41,36 +41,19 @@ type MsgBase struct {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
* *RegisterNode*
|
|
||||||
|
|
||||||
```go
|
|
||||||
type Address struct {
|
|
||||||
Ip string
|
|
||||||
port int64
|
|
||||||
}
|
|
||||||
|
|
||||||
type RegisterNodeRequest struct {
|
|
||||||
Base *commonpb.MsgBase
|
|
||||||
Address *commonpb.Address
|
|
||||||
}
|
|
||||||
|
|
||||||
type RegisterNodeResponse struct {
|
|
||||||
Status *commonpb.Status
|
|
||||||
InitParams *internalpb.InitParams
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
* *ShowCollections*
|
* *ShowCollections*
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type ShowCollectionRequest struct {
|
type ShowCollectionRequest struct {
|
||||||
Base *commonpb.MsgBase
|
Base *commonpb.MsgBase
|
||||||
DbID UniqueID
|
DbID UniqueID
|
||||||
|
CollectionIDs []int64
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowCollectionResponse struct {
|
type ShowCollectionResponse struct {
|
||||||
Status *commonpb.Status
|
Status *commonpb.Status
|
||||||
CollectionIDs []UniqueID
|
CollectionIDs []UniqueID
|
||||||
|
InMemoryPercentages []int64
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -102,11 +85,13 @@ type ShowPartitionRequest struct {
|
||||||
Base *commonpb.MsgBase
|
Base *commonpb.MsgBase
|
||||||
DbID UniqueID
|
DbID UniqueID
|
||||||
CollectionID UniqueID
|
CollectionID UniqueID
|
||||||
|
PartitionIDs []int64
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowPartitionResponse struct {
|
type ShowPartitionResponse struct {
|
||||||
Status *commonpb.Status
|
Status *commonpb.Status
|
||||||
PartitionIDs []UniqueID
|
PartitionIDs []UniqueID
|
||||||
|
InMemoryPercentages []int64
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -206,15 +191,18 @@ type GetSegmentInfoResponse struct {
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type SearchRequest struct {
|
type SearchRequest struct {
|
||||||
Base *commonpb.MsgBase
|
Base *commonpb.MsgBase
|
||||||
ResultChannelID string
|
ResultChannelID string
|
||||||
DbID int64
|
DbID int64
|
||||||
CollectionID int64
|
CollectionID int64
|
||||||
PartitionIDs []int64
|
PartitionIDs []int64
|
||||||
Dsl string
|
Dsl string
|
||||||
// serialized `PlaceholderGroup`
|
PlaceholderGroup []byte
|
||||||
PlaceholderGroup []byte
|
DslType commonpb.DslType
|
||||||
Query *commonpb.Blob
|
SerializedExprPlan []byte
|
||||||
|
OutputFieldsId []int64
|
||||||
|
TravelTimestamp uint64
|
||||||
|
GuaranteeTimestamp uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type SearchMsg struct {
|
type SearchMsg struct {
|
||||||
|
@ -223,7 +211,25 @@ type SearchMsg struct {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* *RetriveMsg*
|
||||||
|
```go
|
||||||
|
type RetriveRequest struct {
|
||||||
|
Base *commonpb.MsgBase
|
||||||
|
ResultChannelID string
|
||||||
|
DbID int64
|
||||||
|
CollectionID int64
|
||||||
|
PartitionIDs []int64
|
||||||
|
SerializedExprPlan []byte
|
||||||
|
OutputFieldsId []int64
|
||||||
|
TravelTimestamp uint64
|
||||||
|
GuaranteeTimestamp uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type RetriveMsg struct {
|
||||||
|
BaseMsg
|
||||||
|
RetrieveRequest
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
#### 8.2 Query Node Interface
|
#### 8.2 Query Node Interface
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue