Skip to content

Commit

Permalink
v2.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
anyihao committed Nov 11, 2024
1 parent 47288ff commit 9cd1232
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
<dependency>
<groupId>com.tencent.tcvectordb</groupId>
<artifactId>vectordatabase-sdk-java</artifactId>
<version>2.0.11</version>
<version>2.0.13</version>
</dependency>
```

- Gradle/Grails

```gradle
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.0.11'
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.0.13'
```

### Examples
Expand Down
4 changes: 2 additions & 2 deletions tcvectordb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
<dependency>
<groupId>com.tencent.tcvectordb</groupId>
<artifactId>vectordatabase-sdk-java</artifactId>
<version>2.0.11</version>
<version>2.0.13</version>
</dependency>
```

- Gradle/Grails

```gradle
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.0.11'
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.0.13'
```

### Examples
Expand Down
2 changes: 1 addition & 1 deletion tcvectordb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.tencent.tcvectordb</groupId>
<artifactId>vectordatabase-sdk-java</artifactId>
<version>2.0.11</version>
<version>2.0.13</version>
<packaging>jar</packaging>

<name>vectordatabase-sdk-java</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.tencent.tcvectordb.model.param.collection.ParamsSerializer;

@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class SplitterPreprocessParams implements ParamsSerializer {
public class SplitterPreprocessParams{
private boolean appendTitleToChunk;
private boolean appendKeywordsToChunk;
private String chunkSplitter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ParamsDeserialize extends JsonDeserializer<ParamsSerializer> {
public ParamsSerializer deserialize(JsonParser p, DeserializationContext ctxt)
throws IOException, JacksonException {
String paramsStr = p.getCodec().readTree(p).toString();
Object o = p.currentValue();
Object o = p.getCurrentValue();
if (o instanceof IndexField) {
IndexField indexField = (IndexField) o;
if (indexField.isVectorField()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ private String getAddress(String url){
}

@Override
public void close() {
public synchronized void close() {
super.close();
this.channel.shutdown();
if (this.channel!=null){
this.channel.shutdown();
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,10 @@ public BaseRes addIndex(AddIndexParamInner addIndexParamInner) {
}

@Override
public void close() {
this.client.dispatcher().executorService().shutdown();
public synchronized void close() {
if (this.client != null){
this.client.dispatcher().executorService().shutdown();
}
}

@Override
Expand Down

0 comments on commit 9cd1232

Please sign in to comment.