Skip to content

Commit b9772d2

Browse files
author
anyihao
committed
2.2.1
1 parent eeea8ae commit b9772d2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
2424
<dependency>
2525
<groupId>com.tencent.tcvectordb</groupId>
2626
<artifactId>vectordatabase-sdk-java</artifactId>
27-
<version>2.2.0</version>
27+
<version>2.2.1</version>
2828
</dependency>
2929
```
3030

3131
- Gradle/Grails
3232

3333
```gradle
34-
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.2.0'
34+
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.2.1'
3535
```
3636

3737
### Examples

tcvectordb/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
2424
<dependency>
2525
<groupId>com.tencent.tcvectordb</groupId>
2626
<artifactId>vectordatabase-sdk-java</artifactId>
27-
<version>2.1.3</version>
27+
<version>2.2.1</version>
2828
</dependency>
2929
```
3030

3131
- Gradle/Grails
3232

3333
```gradle
34-
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.1.3'
34+
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.2.1'
3535
```
3636

3737
### Examples

tcvectordb/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.tencent.tcvectordb</groupId>
66
<artifactId>vectordatabase-sdk-java</artifactId>
7-
<version>2.2.0</version>
7+
<version>2.2.1</version>
88
<packaging>jar</packaging>
99

1010
<name>vectordatabase-sdk-java</name>

tcvectordb/src/main/java/com/tencent/tcvectordb/model/param/dml/Filter.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,29 @@
3232
@JsonInclude(JsonInclude.Include.NON_NULL)
3333
public class Filter {
3434

35-
private StringBuffer condBuffer;
35+
private String cond;
3636

3737
public Filter(String cond) {
38-
this.condBuffer = new StringBuffer(cond);
38+
this.cond = cond;
3939
}
4040

4141
public Filter and(String cond) {
42-
this.condBuffer.append(String.format(" and ( %s )", cond));
42+
this.cond = String.format("( %s ) and ( %s )", this.cond, cond);
4343
return this;
4444
}
4545

4646
public Filter or(String cond) {
47-
this.condBuffer.append(String.format(" or ( %s )", cond));
47+
this.cond = String.format("( %s ) or ( %s )", this.cond, cond);
4848
return this;
4949
}
5050

5151
public Filter andNot(String cond) {
52-
this.condBuffer.append(String.format(" and not ( %s )", cond));
52+
this.cond = String.format("( %s ) and not ( %s )", this.cond, cond);
5353
return this;
5454
}
5555

5656
public Filter orNot(String cond) {
57-
this.condBuffer.append(String.format(" or not ( %s )", cond));
57+
this.cond = String.format("( %s ) or not ( %s )",this.cond, cond);
5858
return this;
5959
}
6060

@@ -109,6 +109,6 @@ public static <T> String includeAll(String key, List<T> values) {
109109
}
110110

111111
public String getCond() {
112-
return condBuffer.toString();
112+
return cond;
113113
}
114114
}

0 commit comments

Comments
 (0)