internal_msg.proto 3.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
syntax = "proto3";
package milvus.proto.internal;
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/internalpb";

import "common.proto";
import "service_msg.proto";


enum ReqType {
    kNone = 0;
    /* Definition Requests: collection */
    kCreateCollection = 100;
    kDropCollection = 101;
    kHasCollection = 102;
    kDescribeCollection = 103;
    kShowCollections = 104;

    /* Definition Requests: partition */
    kCreatePartition = 200;
    kDropPartition = 201;
    kHasPartition = 202;
    kDescribePartition = 203;
    kShowPartitions = 204;

    /* Manipulation Requests */
    kInsert = 400;

    /* Query */
    kSearch = 500;
}


message CreateCollectionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    common.Blob schema = 5;
}


message DropCollectionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.CollectionName collection_name = 5;
}


message HasCollectionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.CollectionName collection_name = 5;
}


message DescribeCollectionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.CollectionName collection_name = 5;
}


message ShowCollectionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
}


message CreatePartitionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.PartitionName partition_name = 5;
}


message DropPartitionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.PartitionName partition_name = 5;
}


message HasPartitionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.PartitionName partition_name = 5;
}


message DescribePartitionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.PartitionName partition_name = 5;
}


message ShowPartitionRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    uint64 timestamp = 3;
    int64 proxy_id = 4;
    service.CollectionName collection_name = 5;
}


message InsertRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    string collection_name = 3;
    string partition_tag = 4;
    uint64 segment_id = 5;
    uint64 channel_id = 6;
    int64 proxy_id = 7;
    uint64 timestamp = 8;
    repeated int64 row_ids = 9;
    repeated common.Blob row_data = 10;
}


message DeleteRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    string collection_name = 3;
    uint64 channel_id = 4;
    int64 proxy_id = 5;
    uint64 timestamp = 6;
    repeated int64 primary_keys = 7;
}


message SearchRequest {
    ReqType req_type = 1;
    uint64 req_id = 2;
    int64 proxy_id = 3;
    uint64 timestamp = 4;
    uint64 result_channel_id = 5;
    common.Blob query = 6;

}

message SearchResult {
    common.Status status = 1;
    uint64 req_id = 2;
    int64 proxy_id = 3;
    int64 query_node_id = 4;
    uint64 timestamp = 5;
    uint64 result_channel_id = 6;
    repeated service.Hits hits = 7;
}


message TimeSyncMsg {
    int64 peer_id = 1;
    uint64 timestamp = 2;
}


message Key2Seg {
    int64 row_id = 1;
    uint64 primary_key = 2;
    uint64 timestamp = 3;
    bool is_valid = 4;
    repeated uint64 segment_ids = 5;
}


message Key2SegMsg {
    uint64 req_id = 1;
    repeated Key2Seg key2seg = 2;
}


message SegmentStatistics {
  uint64 segment_id = 1;
  uint64 memory_size = 2;
  int64 num_rows = 3;
}