Browse Source

resolve some conflict,add comment to api interface,zhao-weilong (#207)

Signed-off-by: weilongzhao <harryzwl@163.com>

Co-authored-by: weilongzhao <harryzwl@163.com>
HomeWork 3 years ago
parent
commit
8dbabd77c3

+ 37 - 0
src/main/java/io/milvus/param/Control/GetMetricsRequestParam.java

@@ -0,0 +1,37 @@
+package io.milvus.param.Control;
+
+/**
+ * @author:weilongzhao
+ * @time:2021/9/4 23:15
+ */
+public class GetMetricsRequestParam {
+    private final String request;
+
+    public String getRequest() {
+        return request;
+    }
+
+    public GetMetricsRequestParam(GetMetricsRequestParam.Builder builder) {
+        this.request = builder.request;
+    }
+
+    public static final class Builder {
+        private String request;
+
+        private Builder() {
+        }
+
+        public static GetMetricsRequestParam.Builder newBuilder() {
+            return new GetMetricsRequestParam.Builder();
+        }
+
+        public GetMetricsRequestParam.Builder withCollectionName(String request) {
+            this.request = request;
+            return this;
+        }
+
+        public GetMetricsRequestParam build() {
+            return new GetMetricsRequestParam(this);
+        }
+    }
+}

+ 37 - 0
src/main/java/io/milvus/param/Control/GetPersistentSegmentInfoParam.java

@@ -0,0 +1,37 @@
+package io.milvus.param.Control;
+
+/**
+ * @author:weilongzhao
+ * @time:2021/9/4 22:20
+ */
+public class GetPersistentSegmentInfoParam {
+    private final String collectionName;
+
+    public String getCollectionName() {
+        return collectionName;
+    }
+
+    public GetPersistentSegmentInfoParam(Builder builder) {
+        this.collectionName = builder.collectionName;
+    }
+
+    public static final class Builder {
+        private String collectionName;
+
+        private Builder() {
+        }
+
+        public static Builder newBuilder() {
+            return new Builder();
+        }
+
+        public Builder withCollectionName(String collectionName) {
+            this.collectionName = collectionName;
+            return this;
+        }
+
+        public GetPersistentSegmentInfoParam build() {
+            return new GetPersistentSegmentInfoParam(this);
+        }
+    }
+}

+ 37 - 0
src/main/java/io/milvus/param/Control/GetQuerySegmentInfoParam.java

@@ -0,0 +1,37 @@
+package io.milvus.param.Control;
+
+/**
+ * @author:weilongzhao
+ * @time:2021/9/4 23:01
+ */
+public class GetQuerySegmentInfoParam {
+    private final String collectionName;
+
+    public String getCollectionName() {
+        return collectionName;
+    }
+
+    public GetQuerySegmentInfoParam(GetQuerySegmentInfoParam.Builder builder) {
+        this.collectionName = builder.collectionName;
+    }
+
+    public static final class Builder {
+        private String collectionName;
+
+        private Builder() {
+        }
+
+        public static GetQuerySegmentInfoParam.Builder newBuilder() {
+            return new GetQuerySegmentInfoParam.Builder();
+        }
+
+        public GetQuerySegmentInfoParam.Builder withCollectionName(String collectionName) {
+            this.collectionName = collectionName;
+            return this;
+        }
+
+        public GetQuerySegmentInfoParam build() {
+            return new GetQuerySegmentInfoParam(this);
+        }
+    }
+}