Skip to content

Commit bc58326

Browse files
committed
Fix Warning
1 parent bd8886a commit bc58326

File tree

10 files changed

+53
-24
lines changed

10 files changed

+53
-24
lines changed

astra-sdk-devops/src/main/java/com/dtsx/astra/sdk/db/DatabaseClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ private String getDefaultSecureConnectBundleUrl() {
150150

151151
/**
152152
* Download SecureBundle for a specific data center.
153+
*
154+
* @param region
155+
* region to download the SCB
153156
* @return
154157
* binary content.
155158
*/

astra-sdk-devops/src/main/java/com/dtsx/astra/sdk/db/domain/DatabaseCreationType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
*/
66
public enum DatabaseCreationType {
77

8+
/** Provided if the db is vector. */
89
vector
910
}

astra-sdk-devops/src/main/java/com/dtsx/astra/sdk/utils/TestUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ private static void resumeDb(Database db) {
181181
* keyspace name
182182
* @return
183183
* database client
184+
* @throws InterruptedException
185+
* wait for db availability interrupted
184186
*/
185187
public static String setupDatabase(String dbName, String keyspace)
186188
throws InterruptedException {

astra-sdk-vector/src/main/java/com/dtsx/astra/sdk/cassio/AbstractCassandraTable.java

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,38 @@ public abstract class AbstractCassandraTable<RECORD> {
1818
public static final String SAI_INDEX_CLASSNAME = "org.apache.cassandra.index.sai.StorageAttachedIndex";
1919

2020
/**
21-
* Table Structure.
21+
* Table column names.
2222
*/
2323
public static final String PARTITION_ID = "partition_id";
24+
25+
/**
26+
* Table column names.
27+
*/
2428
public static final String ROW_ID = "row_id";
29+
30+
/**
31+
* Table column names.
32+
*/
2533
public static final String ATTRIBUTES_BLOB = "attributes_blob";
34+
35+
/**
36+
* Table column names.
37+
*/
2638
public static final String BODY_BLOB = "body_blob";
39+
40+
/**
41+
* Table column names.
42+
*/
2743
public static final String METADATA_S = "metadata_s";
44+
45+
/**
46+
* Table column names.
47+
*/
2848
public static final String VECTOR = "vector";
49+
50+
/**
51+
* Table column names.
52+
*/
2953
public static final String COLUMN_SIMILARITY = "similarity";
3054

3155
/**

astra-sdk-vector/src/main/java/com/dtsx/astra/sdk/cassio/ClusteredCassandraTable.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,19 @@ public void insert(@NonNull String partitionId, @NonNull UUID rowId, @NonNull St
188188
.build());
189189
}
190190

191+
/**
192+
* Represents a row of the Table
193+
*/
191194
@Data @AllArgsConstructor @NoArgsConstructor
192195
public static class Record {
193196

197+
/** Partition id. */
194198
private String partitionId;
195199

200+
/** Row identifier. */
196201
private UUID rowId;
197202

203+
/** Text body. */
198204
private String body;
199205
}
200206

astra-sdk-vector/src/main/java/com/dtsx/astra/sdk/cassio/MetadataVectorCassandraTable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
import java.util.Objects;
2121
import java.util.stream.Collectors;
2222

23+
/**
24+
* Table representing persistence for Vector Stores support.
25+
*/
2326
@Slf4j
2427
@Getter
2528
public class MetadataVectorCassandraTable extends AbstractCassandraTable<MetadataVectorCassandraTable.Record> {
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package com.dtsx.astra.sdk.cassio;
22

3+
import lombok.Getter;
4+
5+
/**
6+
* Option for the similarity metric.
7+
*/
8+
@Getter
39
public enum SimilarityMetric {
410

511
DOT_PRODUCT("DOT_PRODUCT","similarity_dot_product"),
@@ -11,12 +17,12 @@ public enum SimilarityMetric {
1117
/**
1218
* Option.
1319
*/
14-
private String option;
20+
private final String option;
1521

1622
/**
1723
* Function.
1824
*/
19-
private String function;
25+
private final String function;
2026

2127
/**
2228
* Constructor.
@@ -31,23 +37,5 @@ public enum SimilarityMetric {
3137
this.function = function;
3238
}
3339

34-
/**
35-
* Gets option
36-
*
37-
* @return value of option
38-
*/
39-
public String getOption() {
40-
return option;
41-
}
42-
43-
/**
44-
* Gets function
45-
*
46-
* @return value of function
47-
*/
48-
public String getFunction() {
49-
return function;
50-
}
51-
5240

5341
}

astra-sdk-vector/src/main/java/com/dtsx/astra/sdk/cassio/SimilaritySearchQuery.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import java.util.List;
77
import java.util.Map;
88

9+
/**
10+
* Wrap query parameters as a Bean.
11+
*/
912
@Data @Builder
1013
public class SimilaritySearchQuery {
1114

@@ -34,5 +37,4 @@ public class SimilaritySearchQuery {
3437
*/
3538
private Map<String, String> metaData;
3639

37-
3840
}

astra-spring-boot-3x-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</parent>
1313

1414
<properties>
15-
<spring-boot.version>3.1.2</spring-boot.version>
15+
<spring-boot.version>3.1.3</spring-boot.version>
1616
</properties>
1717

1818
<dependencies>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<!-- Stargate -->
4141
<stargate-sdk.version>2.0.2</stargate-sdk.version>
4242
<stargate-grpc.version>2.0.17</stargate-grpc.version>
43-
<grpc-netty.version>1.57.2</grpc-netty.version>
43+
<grpc-netty.version>1.56.1</grpc-netty.version>
4444

4545
<!-- Junit -->
4646
<junit-jupiter.version>5.10.0</junit-jupiter.version>

0 commit comments

Comments
 (0)