-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix several bugs and add new parameter to support partition key. (#792)
* bug fix: check the fieldName and indexName matches the describeIndex request Signed-off-by: Nian Liu <nian.liu@zilliz.com> * add partitionKey support for collection create, add ShardsNum, Array, etc. Signed-off-by: Nian Liu <nian.liu@zilliz.com> * Feature sync: update createCollection to add several new params; add AddFieldReq, update QueryResp and SearchResp Signed-off-by: Nian Liu <nian.liu@zilliz.com> --------- Signed-off-by: Nian Liu <nian.liu@zilliz.com> (cherry picked from commit af62656)
- Loading branch information
Showing
21 changed files
with
176 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/io/milvus/v2/service/collection/request/AddFieldReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package io.milvus.v2.service.collection.request; | ||
|
||
import io.milvus.v2.common.DataType; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Data | ||
@SuperBuilder | ||
public class AddFieldReq { | ||
private String fieldName; | ||
@Builder.Default | ||
private String description = ""; | ||
private DataType dataType; | ||
@Builder.Default | ||
private Integer maxLength = 65535; | ||
@Builder.Default | ||
private Boolean isPrimaryKey = Boolean.FALSE; | ||
@Builder.Default | ||
private Boolean isPartitionKey = Boolean.FALSE; | ||
@Builder.Default | ||
private Boolean autoID = Boolean.FALSE; | ||
private Integer dimension; | ||
private io.milvus.v2.common.DataType elementType; | ||
private Integer maxCapacity; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.