21 |
22 |
23 |
--------------------------------------------------------------------------------
/doc/script.js:
--------------------------------------------------------------------------------
1 | function show(type)
2 | {
3 | count = 0;
4 | for (var key in methods) {
5 | var row = document.getElementById(key);
6 | if ((methods[key] & type) != 0) {
7 | row.style.display = '';
8 | row.className = (count++ % 2) ? rowColor : altColor;
9 | }
10 | else
11 | row.style.display = 'none';
12 | }
13 | updateTabs(type);
14 | }
15 |
16 | function updateTabs(type)
17 | {
18 | for (var value in tabs) {
19 | var sNode = document.getElementById(tabs[value][0]);
20 | var spanNode = sNode.firstChild;
21 | if (value == type) {
22 | sNode.className = activeTableTab;
23 | spanNode.innerHTML = tabs[value][1];
24 | }
25 | else {
26 | sNode.className = tableTab;
27 | spanNode.innerHTML = "" + tabs[value][1] + "";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/examples/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | # Set root logger level to DEBUG and its only appender to A1.
2 | log4j.rootLogger=INFO, A1
3 |
4 | # A1 is set to be a ConsoleAppender.
5 | log4j.appender.A1=org.apache.log4j.ConsoleAppender
6 |
7 | # A1 uses PatternLayout.
8 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout
9 | log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
10 |
11 | # If the log level is DEBUG, print only messages of level WARN for some noisy libs.
12 | log4j.logger.io.grpc.netty.shaded=WARN
13 | log4j.logger.org.apache.parquet=WARN
14 | log4j.logger.org.apache.hadoop=WARN
15 |
--------------------------------------------------------------------------------
/examples/src/main/resources/tls/gen.sh:
--------------------------------------------------------------------------------
1 | Country="CN"
2 | State="Shanghai"
3 | Location="Shanghai"
4 | Organization="milvus"
5 | Organizational="milvus"
6 | CommonName="localhost"
7 |
8 | echo "generate ca.key"
9 | openssl genrsa -out ca.key 2048
10 |
11 | echo "generate ca.pem"
12 | openssl req -new -x509 -key ca.key -out ca.pem -days 3650 -subj "/C=$Country/ST=$State/L=$Location/O=$Organization/OU=$Organizational/CN=$CommonName"
13 |
14 | echo "generate server SAN certificate"
15 | openssl genpkey -algorithm RSA -out server.key
16 | openssl req -new -nodes -key server.key -out server.csr -days 3650 -subj "/C=$Country/O=$Organization/OU=$Organizational/CN=$CommonName" -config ./openssl.cnf -extensions v3_req
17 | openssl x509 -req -days 3650 -in server.csr -out server.pem -CA ca.pem -CAkey ca.key -CAcreateserial -extfile ./openssl.cnf -extensions v3_req
18 |
19 | echo "generate client SAN certificate"
20 | openssl genpkey -algorithm RSA -out client.key
21 | openssl req -new -nodes -key client.key -out client.csr -days 3650 -subj "/C=$Country/O=$Organization/OU=$Organizational/CN=$CommonName" -config ./openssl.cnf -extensions v3_req
22 | openssl x509 -req -days 3650 -in client.csr -out client.pem -CA ca.pem -CAkey ca.key -CAcreateserial -extfile ./openssl.cnf -extensions v3_req
23 |
24 |
25 |
--------------------------------------------------------------------------------
/sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/common/clientenum/BulkFileType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.bulkwriter.common.clientenum;
21 |
22 | public enum BulkFileType {
23 | PARQUET(1),
24 | JSON(2),
25 | CSV(3),
26 | ;
27 |
28 | private Integer code;
29 |
30 | BulkFileType(Integer code) {
31 | this.code = code;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/connect/StorageConnectParam.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.bulkwriter.connect;
21 |
22 | public class StorageConnectParam {
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/response/BulkImportResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.bulkwriter.response;
21 |
22 | import lombok.AllArgsConstructor;
23 | import lombok.Builder;
24 | import lombok.Data;
25 | import lombok.NoArgsConstructor;
26 |
27 | import java.io.Serializable;
28 |
29 | @Data
30 | @Builder
31 | @AllArgsConstructor
32 | @NoArgsConstructor
33 | public class BulkImportResponse implements Serializable {
34 | private static final long serialVersionUID = -7162743560382861611L;
35 |
36 | private String jobId;
37 | }
38 |
--------------------------------------------------------------------------------
/sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/response/Record.java:
--------------------------------------------------------------------------------
1 | package io.milvus.bulkwriter.response;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | @Data
9 | @Builder
10 | @AllArgsConstructor
11 | @NoArgsConstructor
12 | public class Record {
13 | private String collectionName;
14 | private String jobId;
15 | private String state;
16 | }
17 |
--------------------------------------------------------------------------------
/sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/storage/StorageClient.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.bulkwriter.storage;
21 |
22 |
23 | import java.io.InputStream;
24 |
25 | public interface StorageClient {
26 | Long getObjectEntity(String bucketName, String objectKey) throws Exception;
27 | boolean checkBucketExist(String bucketName) throws Exception;
28 | void putObjectStream(InputStream inputStream, long contentLength, String bucketName, String objectKey) throws Exception;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/writer/FormatFileWriter.java:
--------------------------------------------------------------------------------
1 | package io.milvus.bulkwriter.writer;
2 |
3 | import java.io.IOException;
4 | import java.util.Map;
5 |
6 | public interface FormatFileWriter {
7 | void appendRow(Map rowValues, boolean firstWrite) throws IOException;
8 |
9 | String getFilePath();
10 |
11 | void close() throws IOException;
12 | }
13 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/common/clientenum/FunctionType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.common.clientenum;
21 |
22 | import lombok.Getter;
23 |
24 | public enum FunctionType {
25 | UNKNOWN(0),
26 | BM25(1),
27 | TextEmbedding(2),
28 | Rerank(3),
29 | ;
30 |
31 | @Getter
32 | private final int code;
33 |
34 | FunctionType(int i) {
35 | code = i;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/common/resourcegroup/NodeInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.common.resourcegroup;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class NodeInfo {
28 | private Long nodeId;
29 | private String address;
30 | private String hostname;
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/connection/Listener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.connection;
21 |
22 | /**
23 | * Interface of multi server listener.
24 | */
25 | public interface Listener {
26 |
27 | Boolean heartBeat(ServerSetting serverSetting);
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/exception/ClientNotConnectedException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.exception;
21 |
22 | import io.milvus.param.R;
23 |
24 | /**
25 | * Milvus client API throws this exception when not connected to the Milvus server.
26 | */
27 | public class ClientNotConnectedException extends MilvusException {
28 | public ClientNotConnectedException(String msg) {
29 | super(msg, R.Status.ClientNotConnected.getCode());
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/exception/ParamException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.exception;
21 |
22 | import io.milvus.param.R;
23 |
24 | /**
25 | * Exception for illegal parameters input.
26 | */
27 | public class ParamException extends MilvusException {
28 | public ParamException(String msg) {
29 | super(msg, R.Status.ParamError.getCode());
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/exception/UnExpectedException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.exception;
21 |
22 | import io.milvus.param.R;
23 |
24 | /**
25 | * Exception for unexpected exception.
26 | */
27 | public class UnExpectedException extends MilvusException {
28 | public UnExpectedException(String msg) {
29 | super(msg, R.Status.UnexpectedError.getCode());
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/IndexBuildState.java:
--------------------------------------------------------------------------------
1 | package io.milvus.param;
2 |
3 | public enum IndexBuildState {
4 | IndexStateNone,
5 | Unissued,
6 | InProgress,
7 | Finished,
8 | Failed,
9 | Retry,
10 | }
11 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/LogLevel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param;
21 |
22 | public enum LogLevel {
23 | Debug,
24 | Info,
25 | Warning,
26 | Error,
27 | }
28 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/MetricType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param;
21 |
22 | /**
23 | * Represents the available metric types.
24 | * For more information: @see Similarity Metrics
25 | */
26 | public enum MetricType {
27 | None,
28 |
29 | // Only for float vectors
30 | L2,
31 | IP,
32 | COSINE,
33 |
34 | // Only for binary vectors
35 | HAMMING,
36 | JACCARD,
37 | ;
38 | }
39 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/RpcStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param;
21 |
22 | import lombok.ToString;
23 |
24 | /**
25 | * Utility class to wrap a message.
26 | */
27 | @ToString
28 | public class RpcStatus {
29 | public static final String SUCCESS_MSG = "Success";
30 |
31 | private final String msg;
32 |
33 | public String getMsg() {
34 | return msg;
35 | }
36 |
37 | public RpcStatus(String msg) {
38 | this.msg = msg;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/dml/ranker/BaseRanker.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param.dml.ranker;
21 |
22 | import java.util.HashMap;
23 | import java.util.Map;
24 |
25 | public abstract class BaseRanker {
26 | public abstract Map getProperties();
27 | }
28 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/highlevel/collection/response/ListCollectionsResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param.highlevel.collection.response;
21 |
22 | import lombok.Builder;
23 | import lombok.ToString;
24 |
25 | import java.util.List;
26 |
27 | /**
28 | * Parameters for showCollections interface.
29 | */
30 | @Builder
31 | @ToString
32 | public class ListCollectionsResponse {
33 | public List collectionNames;
34 | }
35 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/highlevel/dml/response/GetResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param.highlevel.dml.response;
21 |
22 | import io.milvus.response.QueryResultsWrapper;
23 | import lombok.Builder;
24 | import lombok.Getter;
25 |
26 | import java.util.List;
27 |
28 | /**
29 | * Parameters for get interface.
30 | */
31 | @Builder
32 | @Getter
33 | public class GetResponse {
34 | public List rowRecords;
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/highlevel/dml/response/InsertResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param.highlevel.dml.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Getter;
24 |
25 | import java.util.List;
26 |
27 | /**
28 | * Parameters for insert interface.
29 | */
30 | @Builder
31 | @Getter
32 | public class InsertResponse {
33 | private Long insertCount;
34 | public List> insertIds;
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/param/highlevel/dml/response/QueryResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.param.highlevel.dml.response;
21 |
22 | import io.milvus.response.QueryResultsWrapper;
23 | import lombok.Builder;
24 | import lombok.Getter;
25 |
26 | import java.util.List;
27 |
28 | /**
29 | * Parameters for query interface.
30 | */
31 | @Builder
32 | @Getter
33 | public class QueryResponse {
34 | public List rowRecords;
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/pool/MilvusClientV1Pool.java:
--------------------------------------------------------------------------------
1 | package io.milvus.pool;
2 |
3 | import io.milvus.client.MilvusClient;
4 | import io.milvus.client.MilvusServiceClient;
5 | import io.milvus.param.ConnectParam;
6 |
7 | public class MilvusClientV1Pool extends ClientPool {
8 | public MilvusClientV1Pool(PoolConfig poolConfig, ConnectParam connectParam) throws ClassNotFoundException, NoSuchMethodException {
9 | super(poolConfig, new PoolClientFactory(connectParam, MilvusServiceClient.class.getName()));
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/pool/MilvusClientV2Pool.java:
--------------------------------------------------------------------------------
1 | package io.milvus.pool;
2 |
3 | import io.milvus.v2.client.ConnectConfig;
4 | import io.milvus.v2.client.MilvusClientV2;
5 |
6 | public class MilvusClientV2Pool extends ClientPool {
7 | public MilvusClientV2Pool(PoolConfig poolConfig, ConnectConfig connectConfig) throws ClassNotFoundException, NoSuchMethodException {
8 | super(poolConfig, new PoolClientFactory(connectConfig, MilvusClientV2.class.getName()));
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/pool/PoolConfig.java:
--------------------------------------------------------------------------------
1 | package io.milvus.pool;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.time.Duration;
8 |
9 | @Data
10 | @SuperBuilder
11 | public class PoolConfig {
12 | @Builder.Default
13 | private int maxIdlePerKey = 5;
14 | @Builder.Default
15 | private int minIdlePerKey = 0;
16 | @Builder.Default
17 | private int maxTotalPerKey = 10;
18 | @Builder.Default
19 | private int maxTotal = 50;
20 | @Builder.Default
21 | private boolean blockWhenExhausted = true;
22 | @Builder.Default
23 | private Duration maxBlockWaitDuration = Duration.ofSeconds(3L);
24 | @Builder.Default
25 | private Duration evictionPollingInterval = Duration.ofSeconds(60L);
26 | @Builder.Default
27 | private Duration minEvictableIdleDuration = Duration.ofSeconds(10L);
28 | @Builder.Default
29 | private boolean testOnBorrow = false;
30 | @Builder.Default
31 | private boolean testOnReturn = true;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/common/CompactionState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.common;
21 |
22 | import lombok.Getter;
23 |
24 | @Getter
25 | public enum CompactionState {
26 | UndefiedState(0),
27 | Executing(1),
28 | Completed(2);
29 |
30 | private final int code;
31 | CompactionState(int code) {
32 | this.code = code;
33 | }
34 | ;
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/common/IndexBuildState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.common;
21 |
22 | public enum IndexBuildState {
23 | IndexStateNone,
24 | Unissued,
25 | InProgress,
26 | Finished,
27 | Failed,
28 | Retry,
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/exception/ErrorCode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.exception;
21 |
22 | import lombok.Getter;
23 |
24 | @Getter
25 | public enum ErrorCode {
26 | SUCCESS(0),
27 | COLLECTION_NOT_FOUND(1),
28 | SERVER_ERROR(2),
29 | INVALID_PARAMS(3),
30 | CLIENT_ERROR(4),
31 | RPC_ERROR(5),
32 | TIMEOUT(6);
33 |
34 | private final int code;
35 |
36 | ErrorCode(int i) {
37 | this.code = i;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/ReplicaInfo.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.collection;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.ArrayList;
8 | import java.util.HashMap;
9 | import java.util.List;
10 | import java.util.Map;
11 |
12 | @Data
13 | @SuperBuilder
14 | public class ReplicaInfo {
15 | private Long replicaID;
16 | private Long collectionID;
17 | @Builder.Default
18 | private List partitionIDs = new ArrayList<>();
19 | @Builder.Default
20 | private List shardReplicas = new ArrayList<>();
21 | @Builder.Default
22 | private List nodeIDs = new ArrayList<>(); // include leaders
23 | @Builder.Default
24 | private String resourceGroupName = "";
25 | @Builder.Default
26 | private Map numOutboundNode = new HashMap<>();
27 | }
28 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/ShardReplica.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.collection;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | @Data
11 | @SuperBuilder
12 | public class ShardReplica {
13 | private Long leaderID;
14 | private String leaderAddress; // IP:port
15 | @Builder.Default
16 | private String channelName = "";
17 | @Builder.Default
18 | private List nodeIDs = new ArrayList<>();
19 | }
20 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/AlterCollectionReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.collection.request;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.HashMap;
8 | import java.util.Map;
9 |
10 | @Data
11 | @SuperBuilder
12 | @Deprecated
13 | public class AlterCollectionReq {
14 | private String collectionName;
15 | private String databaseName;
16 | @Builder.Default
17 | private final Map properties = new HashMap<>();
18 |
19 |
20 |
21 | public static abstract class AlterCollectionReqBuilder> {
22 | public B property(String key, String value) {
23 | if(null == this.properties$value ){
24 | this.properties$value = new HashMap<>();
25 | }
26 | this.properties$value.put(key, value);
27 | this.properties$set = true;
28 | return self();
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/DescribeCollectionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DescribeCollectionReq {
28 | private String databaseName;
29 | private String collectionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/DescribeReplicasReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.collection.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class DescribeReplicasReq {
9 | private String collectionName;
10 | private String databaseName;
11 | }
12 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/DropCollectionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class DropCollectionReq {
29 | private String collectionName;
30 | @Deprecated
31 | @Builder.Default
32 | private Boolean async = Boolean.TRUE;
33 | @Builder.Default
34 | private Long timeout = 60000L;
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/GetCollectionStatsReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GetCollectionStatsReq {
28 | private String collectionName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/GetLoadStateReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GetLoadStateReq {
28 | private String collectionName;
29 | private String partitionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/HasCollectionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class HasCollectionReq {
28 | private String collectionName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/ReleaseCollectionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class ReleaseCollectionReq {
29 | private String collectionName;
30 | @Deprecated
31 | @Builder.Default
32 | private Boolean async = Boolean.TRUE;
33 | @Builder.Default
34 | private Long timeout = 60000L;
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/request/RenameCollectionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class RenameCollectionReq {
28 | private String collectionName;
29 | private String newCollectionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/response/DescribeReplicasResp.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.collection.response;
2 |
3 | import io.milvus.v2.service.collection.ReplicaInfo;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.experimental.SuperBuilder;
7 |
8 | import java.util.ArrayList;
9 | import java.util.List;
10 |
11 | @Data
12 | @SuperBuilder
13 | public class DescribeReplicasResp {
14 | @Builder.Default
15 | private List replicas = new ArrayList<>();
16 | }
17 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/response/GetCollectionStatsResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.response;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GetCollectionStatsResp {
28 | private Long numOfEntities;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/collection/response/ListCollectionsResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.collection.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class ListCollectionsResp {
32 | @Builder.Default
33 | private List collectionNames = new ArrayList<>();
34 | }
35 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/request/AlterDatabaseReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.HashMap;
27 | import java.util.Map;
28 |
29 | @Data
30 | @SuperBuilder
31 | @Deprecated
32 | public class AlterDatabaseReq {
33 | private String databaseName;
34 | @Builder.Default
35 | private Map properties = new HashMap<>();
36 | }
37 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/request/CreateDatabaseReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.HashMap;
27 | import java.util.Map;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class CreateDatabaseReq {
32 | private String databaseName;
33 | @Builder.Default
34 | private Map properties = new HashMap<>();
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/request/DescribeDatabaseReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DescribeDatabaseReq {
28 | private String databaseName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/request/DropDatabasePropertiesReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.request;
21 |
22 |
23 | import lombok.Builder;
24 | import lombok.Data;
25 | import lombok.experimental.SuperBuilder;
26 |
27 | import java.util.ArrayList;
28 | import java.util.List;
29 |
30 | @Data
31 | @SuperBuilder
32 | public class DropDatabasePropertiesReq {
33 | private String databaseName;
34 | @Builder.Default
35 | private List propertyKeys = new ArrayList<>();
36 | }
37 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/request/DropDatabaseReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DropDatabaseReq {
28 | private String databaseName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/response/DescribeDatabaseResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.HashMap;
27 | import java.util.Map;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class DescribeDatabaseResp {
32 | private String databaseName;
33 | @Builder.Default
34 | private Map properties = new HashMap<>();
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/database/response/ListDatabasesResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.database.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class ListDatabasesResp {
32 | @Builder.Default
33 | private List databaseNames = new ArrayList<>();
34 | }
35 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/index/request/AlterIndexReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.index.request;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.HashMap;
8 | import java.util.Map;
9 |
10 | @Data
11 | @SuperBuilder
12 | @Deprecated
13 | public class AlterIndexReq {
14 | private String collectionName;
15 | private String databaseName;
16 | private String indexName;
17 | @Builder.Default
18 | private Map properties = new HashMap<>();
19 | }
20 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/index/request/DropIndexReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.index.request;
21 |
22 | import lombok.Data;
23 | import lombok.NonNull;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class DropIndexReq {
29 | @NonNull
30 | private String collectionName;
31 | private String fieldName;
32 | private String indexName;
33 | }
34 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/index/request/ListIndexesReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.index.request;
21 |
22 | import lombok.Data;
23 | import lombok.NonNull;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class ListIndexesReq {
29 | @NonNull
30 | private String collectionName;
31 | private String fieldName;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/request/CreatePartitionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.partition.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class CreatePartitionReq {
28 | private String collectionName;
29 | private String partitionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/request/DropPartitionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.partition.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DropPartitionReq {
28 | private String collectionName;
29 | private String partitionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/request/GetPartitionStatsReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.partition.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GetPartitionStatsReq {
28 | private String collectionName;
29 | private String partitionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/request/HasPartitionReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.partition.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class HasPartitionReq {
28 | private String collectionName;
29 | private String partitionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/request/ListPartitionsReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.partition.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class ListPartitionsReq {
28 | private String collectionName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/request/ReleasePartitionsReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.partition.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | import java.util.List;
26 |
27 | @Data
28 | @SuperBuilder
29 | public class ReleasePartitionsReq {
30 | private String collectionName;
31 | private List partitionNames;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/partition/response/GetPartitionStatsResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | package io.milvus.v2.service.partition.response;
22 |
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class GetPartitionStatsResp {
29 | private Long numOfEntities;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/PrivilegeGroup.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class PrivilegeGroup {
32 | private String groupName;
33 | @Builder.Default
34 | private List privileges = new ArrayList<>();
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/AddPrivilegesToGroupReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class AddPrivilegesToGroupReq {
32 | private String groupName;
33 | @Builder.Default
34 | private List privileges = new ArrayList<>();
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/CreatePrivilegeGroupReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class CreatePrivilegeGroupReq {
28 | private String groupName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/CreateRoleReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class CreateRoleReq {
28 | private String roleName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/CreateUserReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class CreateUserReq {
28 | private String userName;
29 | private String password;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DescribeRoleReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DescribeRoleReq {
28 | private String roleName;
29 | private String dbName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DescribeUserReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DescribeUserReq {
28 | private String userName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DropPrivilegeGroupReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DropPrivilegeGroupReq {
28 | private String groupName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DropRoleReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DropRoleReq {
28 | private String roleName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DropUserReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DropUserReq {
28 | private String userName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/GrantPrivilegeReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GrantPrivilegeReq {
28 | private String roleName;
29 | private String objectType;
30 | private String privilege;
31 | private String objectName;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/GrantPrivilegeReqV2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GrantPrivilegeReqV2 {
28 | private String roleName;
29 | private String privilege;
30 | private String dbName;
31 | private String collectionName;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/GrantRoleReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GrantRoleReq {
28 | private String userName;
29 | private String roleName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/ListPrivilegeGroupsReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class ListPrivilegeGroupsReq {
28 | }
29 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RemovePrivilegesFromGroupReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class RemovePrivilegesFromGroupReq {
32 | private String groupName;
33 | @Builder.Default
34 | private List privileges = new ArrayList<>();
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RevokePrivilegeReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class RevokePrivilegeReq {
28 | private String roleName;
29 | private String dbName;
30 | private String objectType;
31 | private String privilege;
32 | private String objectName;
33 | }
34 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RevokePrivilegeReqV2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class RevokePrivilegeReqV2 {
28 | private String roleName;
29 | private String privilege;
30 | private String dbName;
31 | private String collectionName;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RevokeRoleReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class RevokeRoleReq {
28 | private String userName;
29 | private String roleName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/request/UpdatePasswordReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class UpdatePasswordReq {
28 | private String userName;
29 | private String password;
30 | private String newPassword;
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/response/DescribeUserResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class DescribeUserResp {
32 | @Builder.Default
33 | private List roles = new ArrayList<>();
34 | }
35 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/rbac/response/ListPrivilegeGroupsResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.rbac.response;
21 |
22 | import io.milvus.v2.service.rbac.PrivilegeGroup;
23 | import lombok.Builder;
24 | import lombok.Data;
25 | import lombok.experimental.SuperBuilder;
26 |
27 | import java.util.*;
28 |
29 | @Data
30 | @SuperBuilder
31 | public class ListPrivilegeGroupsResp {
32 | @Builder.Default
33 | private List privilegeGroups = new ArrayList<>();
34 | }
35 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/CreateResourceGroupReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import io.milvus.common.resourcegroup.ResourceGroupConfig;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | @Data
8 | @SuperBuilder
9 | public class CreateResourceGroupReq {
10 | private String groupName;
11 | private ResourceGroupConfig config;
12 | }
13 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/DescribeResourceGroupReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class DescribeResourceGroupReq {
9 | private String groupName;
10 | }
11 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/DropResourceGroupReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class DropResourceGroupReq {
9 | private String groupName;
10 | }
11 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/ListResourceGroupsReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class ListResourceGroupsReq {
9 | }
10 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/TransferNodeReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class TransferNodeReq {
9 | private String sourceGroupName;
10 | private String targetGroupName;
11 | private Integer numOfNodes;
12 | }
13 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/TransferReplicaReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class TransferReplicaReq {
9 | private String sourceGroupName;
10 | private String targetGroupName;
11 | private String collectionName;
12 | private String databaseName;
13 | private Long numberOfReplicas;
14 | }
15 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/UpdateResourceGroupsReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.request;
2 |
3 | import io.milvus.common.resourcegroup.ResourceGroupConfig;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.experimental.SuperBuilder;
7 |
8 | import java.util.HashMap;
9 | import java.util.Map;
10 |
11 | @Data
12 | @SuperBuilder
13 | public class UpdateResourceGroupsReq {
14 | @Builder.Default
15 | private Map resourceGroups = new HashMap<>();
16 | }
17 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/response/DescribeResourceGroupResp.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.response;
2 |
3 | import io.milvus.common.resourcegroup.NodeInfo;
4 | import io.milvus.common.resourcegroup.ResourceGroupConfig;
5 | import lombok.Builder;
6 | import lombok.Data;
7 | import lombok.experimental.SuperBuilder;
8 |
9 | import java.util.*;
10 |
11 | @Data
12 | @SuperBuilder
13 | public class DescribeResourceGroupResp {
14 | private String groupName;
15 | private Integer capacity;
16 | private Integer numberOfAvailableNode;
17 | @Builder.Default
18 | private Map numberOfLoadedReplica = new HashMap<>();
19 | @Builder.Default
20 | private Map numberOfOutgoingNode = new HashMap<>();
21 | @Builder.Default
22 | private Map numberOfIncomingNode = new HashMap<>();
23 | private ResourceGroupConfig config;
24 | @Builder.Default
25 | private List nodes = new ArrayList<>();
26 | }
27 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/response/ListResourceGroupsResp.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.resourcegroup.response;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | @Data
11 | @SuperBuilder
12 | public class ListResourceGroupsResp {
13 | @Builder.Default
14 | private List groupNames = new ArrayList<>();
15 | }
16 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/AlterAliasReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class AlterAliasReq {
28 | private String alias;
29 | private String collectionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/CompactReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class CompactReq {
29 | private String collectionName;
30 |
31 | @Builder.Default
32 | private Boolean isClustering = Boolean.FALSE;
33 | }
34 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/CreateAliasReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class CreateAliasReq {
28 | private String alias;
29 | private String collectionName;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/DescribeAliasReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DescribeAliasReq {
28 | private String alias;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/DropAliasReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DropAliasReq {
28 | private String alias;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/GetCompactionStateReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class GetCompactionStateReq {
28 | private Long compactionID;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/GetPersistentSegmentInfoReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.utility.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class GetPersistentSegmentInfoReq {
9 | private String collectionName;
10 | }
11 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/GetQuerySegmentInfoReq.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.utility.request;
2 |
3 | import lombok.Data;
4 | import lombok.experimental.SuperBuilder;
5 |
6 | @Data
7 | @SuperBuilder
8 | public class GetQuerySegmentInfoReq {
9 | private String collectionName;
10 | }
11 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/request/ListAliasesReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.request;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class ListAliasesReq {
28 | private String collectionName;
29 | }
30 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/CheckHealthResp.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.utility.response;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | @Data
11 | @SuperBuilder
12 | public class CheckHealthResp {
13 | @Builder.Default
14 | Boolean isHealthy = false;
15 | @Builder.Default
16 | List reasons = new ArrayList<>();
17 | @Builder.Default
18 | List quotaStates = new ArrayList<>();
19 | }
20 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/CompactResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | @Data
27 | @SuperBuilder
28 | public class CompactResp {
29 | @Builder.Default
30 | private Long compactionID = 0L;
31 | }
32 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/DescribeAliasResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.response;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | @Data
26 | @SuperBuilder
27 | public class DescribeAliasResp {
28 | private String collectionName;
29 | private String alias;
30 | }
31 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/FlushResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.response;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.*;
27 |
28 | @Data
29 | @SuperBuilder
30 | public class FlushResp {
31 | @Builder.Default
32 | Map> collectionSegmentIDs = new HashMap<>();
33 | @Builder.Default
34 | Map collectionFlushTs = new HashMap<>();
35 | }
36 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/GetPersistentSegmentInfoResp.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.utility.response;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | @Data
11 | @SuperBuilder
12 | public class GetPersistentSegmentInfoResp {
13 | @Data
14 | @SuperBuilder
15 | public static class PersistentSegmentInfo {
16 | private Long segmentID;
17 | private Long collectionID;
18 | private Long partitionID;
19 | private Long numOfRows;
20 | private String state;
21 | private String level;
22 | private Boolean isSorted;
23 | }
24 |
25 | @Builder.Default
26 | private List segmentInfos = new ArrayList<>();
27 | }
28 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/GetQuerySegmentInfoResp.java:
--------------------------------------------------------------------------------
1 | package io.milvus.v2.service.utility.response;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 | import lombok.experimental.SuperBuilder;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | @Data
11 | @SuperBuilder
12 | public class GetQuerySegmentInfoResp {
13 | @Data
14 | @SuperBuilder
15 | public static class QuerySegmentInfo {
16 | private Long segmentID;
17 | private Long collectionID;
18 | private Long partitionID;
19 | private Long memSize;
20 | private Long numOfRows;
21 | private String indexName;
22 | private Long indexID;
23 | private String state;
24 | private String level;
25 | @Builder.Default
26 | private List nodeIDs = new ArrayList<>();
27 | private Boolean isSorted;
28 | }
29 |
30 | @Builder.Default
31 | private List segmentInfos = new ArrayList<>();
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/utility/response/ListAliasResp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.utility.response;
21 |
22 | import lombok.Data;
23 | import lombok.experimental.SuperBuilder;
24 |
25 | import java.util.List;
26 |
27 | @Data
28 | @SuperBuilder
29 | public class ListAliasResp {
30 | private String collectionName;
31 | private List alias;
32 | }
33 |
--------------------------------------------------------------------------------
/sdk-core/src/main/java/io/milvus/v2/service/vector/request/GetReq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package io.milvus.v2.service.vector.request;
21 |
22 | import lombok.Builder;
23 | import lombok.Data;
24 | import lombok.experimental.SuperBuilder;
25 |
26 | import java.util.List;
27 |
28 | @Data
29 | @SuperBuilder
30 | public class GetReq {
31 | private String collectionName;
32 | @Builder.Default
33 | private String partitionName = "";
34 | private List