diff --git a/docs/developer_guides/chap04_message_stream.md b/docs/developer_guides/chap04_message_stream.md index 2f4767abd2..cd0a227b11 100644 --- a/docs/developer_guides/chap04_message_stream.md +++ b/docs/developer_guides/chap04_message_stream.md @@ -1,9 +1,7 @@ -## 8. Message Stream Service +## 8. Message Stream -#### 8.1 Overview - #### 8.2 Message Stream Service API @@ -67,6 +65,14 @@ type DescribeChannelResponse struct { #### A.3 Message Stream +* Overview + + + + + +* Interface + ``` go type MsgType uint32 const { diff --git a/docs/developer_guides/chap06_master.md b/docs/developer_guides/chap06_master.md index a1251ce5a4..d700b51a23 100644 --- a/docs/developer_guides/chap06_master.md +++ b/docs/developer_guides/chap06_master.md @@ -242,25 +242,75 @@ type IDResponse struct { -#### 10.1 Interfaces (RPC) +#### 10.2 Dd (Data definitions) Channel -| RPC | description | -| :----------------- | ------------------------------------------------------------ | -| CreateCollection | create a collection base on schema statement | -| DropCollection | drop a collection | -| HasCollection | whether or not a collection exists | -| DescribeCollection | show a collection's schema and its descriptive statistics | -| ShowCollections | list all collections | -| CreatePartition | create a partition | -| DropPartition | drop a partition | -| HasPartition | whether or not a partition exists | -| DescribePartition | show a partition's name and its descriptive statistics | -| ShowPartitions | list a collection's all partitions | -| AllocTimestamp | allocate a batch of consecutive timestamps | -| AllocID | allocate a batch of consecutive IDs | -| AssignSegmentID | assign segment id to insert rows (master determines which segment these rows belong to) | -| GetSysConfigs | get system configurations | -| | | +* *CreateCollection* + +```go +type CreateCollectionRequest struct { + RequestBase + DbName string + CollectionName string + DbID UniqueID + CollectionID UniqueID + Schema []bytes +} +``` + +* *DropCollection* + +```go +type DropCollectionRequest struct { + RequestBase + DbName string + CollectionName string + DbID UniqueID + CollectionID UniqueID +} +``` + +* *CreatePartition* + +```go +type CreatePartitionRequest struct { + RequestBase + DbName string + CollectionName string + PartitionName string + DbID UniqueID + CollectionID UniqueID + PartitionID UniqueID +} +``` + +* *DropPartition* + +```go +type DropPartitionRequest struct { + RequestBase + DbName string + CollectionName string + PartitionName string + DbID UniqueID + CollectionID UniqueID + PartitionID UniqueID +} +``` + +* *CreateIndex* + +```go +type CreateIndexRequest struct { + RequestBase + DbName string + CollectionName string + FieldName string + DbID UniqueID + CollectionID UniqueID + FieldID int64 + Params [] KeyValuePair +} +``` diff --git a/docs/developer_guides/chap07_query_service.md b/docs/developer_guides/chap07_query_service.md index 372ab47801..54d6b85f5e 100644 --- a/docs/developer_guides/chap07_query_service.md +++ b/docs/developer_guides/chap07_query_service.md @@ -168,6 +168,24 @@ type CreateQueryChannelResponse struct { +#### 8.2 Query Channel + +```go +type SearchRequest struct { + RequestBase + DbName string + CollectionName string + PartitionNames []string + DbID UniqueID + CollectionID UniqueID + PartitionIDs []UniqueID + Dsl string + PlaceholderGroup []byte +} +``` + + + #### 8.2 Query Node Interface ```go diff --git a/docs/developer_guides/chap09_data_service.md b/docs/developer_guides/chap09_data_service.md index 6da835e0c2..0f8a357914 100644 --- a/docs/developer_guides/chap09_data_service.md +++ b/docs/developer_guides/chap09_data_service.md @@ -163,6 +163,24 @@ type InsertChannelRequest struct { +#### 8.2 Insert Channel + +```go +type InsertRequest struct { + RequestBase + DbName string + CollectionName string + PartitionName string + DbID UniqueID + CollectionID UniqueID + PartitionID UniqueID + RowData []Blob + HashKeys []uint32 +} +``` + + + #### 8.2 Data Node Interface ```go diff --git a/docs/developer_guides/figs/msg_stream_input_output.jpeg b/docs/developer_guides/figs/msg_stream_input_output.jpeg new file mode 100644 index 0000000000..9230491753 Binary files /dev/null and b/docs/developer_guides/figs/msg_stream_input_output.jpeg differ