Pengzna commented on code in PR #2476:
URL: 
https://github.com/apache/incubator-hugegraph/pull/2476#discussion_r1537005924


##########
hugegraph-store/hg-store-grpc/src/main/proto/store_stream_meta.proto:
##########
@@ -0,0 +1,109 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+syntax = "proto3";
+
+import "store_common.proto";
+
+option java_multiple_files = true;
+option java_package = "org.apache.hugegraph.store.grpc.stream";
+option java_outer_classname = "HgStoreStreamMetaProto";
+
+
+message ScanStreamBatchReq {
+  Header header = 1;
+  oneof query {
+    ScanQueryRequest query_request = 10;
+    ScanPagingRequest paging_request = 11;
+    ScanPauseRequest pause_request = 12;
+    ScanCancelRequest cancel_request = 13;
+    ScanReceiptRequest receipt_request = 14;
+  }
+  int64 logId = 15;
+}
+
+message ScanQueryRequest {
+  ScanMethod method = 2;
+  string table = 3;
+  int64 limit = 4;
+  int64 pageSize = 5;
+  int32 scanType = 6;
+  bytes query = 7;
+  bytes position = 8;
+  repeated ScanCondition condition = 9;
+  int64 perKeyLimit = 10;
+  int64 skipDegree = 11;
+  ScanOrderType orderType = 12;
+  int64 perKeyMax = 13;
+}
+
+message ScanPagingRequest {
+  int64 pageSize = 1;
+}
+message ScanPauseRequest {}
+message ScanCancelRequest {}
+message ScanReceiptRequest {
+  uint32 times = 1;
+}
+
+message ScanCondition {
+  int32 code = 1;      // owner key hashcode
+  bytes prefix = 2;   // key prefix
+  bytes start = 3;    // start key
+  bytes end = 4;      // end key
+  int32 serialNo = 5; // serial no
+}
+
+message ScanStreamReq {
+  Header header = 1;
+  ScanMethod method = 2;
+  string table = 3;
+  int32 code = 4;  // partitionId
+  bytes prefix = 5;   // key prefix
+  bytes start = 6;    //start key
+  bytes end = 7;      //end key
+  int64 limit = 8;
+  int32 scanType = 9;
+  bytes query = 10;
+  int32 pageSize = 11;
+  bytes position = 12;
+  uint32 closeFlag = 13;
+  SelectParam selects = 14;
+}
+
+message SelectParam {
+  bytes filter = 1;
+  bool withNoProperties = 2;
+  repeated int32 properties = 3;
+}
+
+message KvPageRes {

Review Comment:
   ditto



##########
hugegraph-store/hg-store-grpc/src/main/proto/store_stream_meta.proto:
##########
@@ -0,0 +1,109 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+syntax = "proto3";
+
+import "store_common.proto";
+
+option java_multiple_files = true;
+option java_package = "org.apache.hugegraph.store.grpc.stream";
+option java_outer_classname = "HgStoreStreamMetaProto";
+
+
+message ScanStreamBatchReq {
+  Header header = 1;
+  oneof query {
+    ScanQueryRequest query_request = 10;
+    ScanPagingRequest paging_request = 11;
+    ScanPauseRequest pause_request = 12;
+    ScanCancelRequest cancel_request = 13;
+    ScanReceiptRequest receipt_request = 14;
+  }
+  int64 logId = 15;
+}
+
+message ScanQueryRequest {
+  ScanMethod method = 2;
+  string table = 3;
+  int64 limit = 4;
+  int64 pageSize = 5;
+  int32 scanType = 6;
+  bytes query = 7;
+  bytes position = 8;
+  repeated ScanCondition condition = 9;
+  int64 perKeyLimit = 10;
+  int64 skipDegree = 11;
+  ScanOrderType orderType = 12;
+  int64 perKeyMax = 13;
+}
+
+message ScanPagingRequest {
+  int64 pageSize = 1;
+}
+message ScanPauseRequest {}
+message ScanCancelRequest {}
+message ScanReceiptRequest {
+  uint32 times = 1;
+}
+
+message ScanCondition {
+  int32 code = 1;      // owner key hashcode
+  bytes prefix = 2;   // key prefix
+  bytes start = 3;    // start key
+  bytes end = 4;      // end key
+  int32 serialNo = 5; // serial no
+}
+
+message ScanStreamReq {

Review Comment:
   ditto



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to