Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
clun committed Apr 4, 2024
1 parent dbaedea commit 1f6a342
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions astra-db-java/pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.datastax.astra</groupId>
<artifactId>astra-db-java</artifactId>
<name>Java Client Library for Data API</name>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0-beta1</version>
<description>Implementation of a client to the Astra/Stargate Data API written in Java</description>
<url>https://github.com/datastax/astra-db-java</url>
<inceptionYear>2024</inceptionYear>
Expand Down Expand Up @@ -382,7 +380,7 @@
<connection>scm:git:[email protected]:datastax/astra-db-java.git</connection>
<developerConnection>scm:git:[email protected]:datastax/astra-db-java.git</developerConnection>
<url>https://github.com/datastax/astra-db-java</url>
<tag>1.2.6</tag>
<tag>1.0.0-beta1</tag>
</scm>

<developers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ void shouldTestFindOneOptions() {
assertThat(FindOneOptions.Builder.sort(Sorts.ascending("test"))).isNotNull();
assertThat(FindOneOptions.Builder.projection(Projections.include("ok"))).isNotNull();
assertThat(FindOneOptions.Builder.includeSimilarity()).isNotNull();
assertThat(FindOneOptions.Builder.vector(new float[]{})).isNotNull();
assertThat(FindOneOptions.Builder.vectorize("OK")
assertThat(FindOneOptions.Builder.sort(new float[]{})).isNotNull();
assertThat(FindOneOptions.Builder.sort("OK")
.sort(Sorts.ascending("test"))
.includeSimilarity()
.projection(Projections.include("ok"))
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>com.datastax.astra</groupId>
<artifactId>astra-db-java</artifactId>
<version>${project.version}</version>
<version>1.0.0-beta1</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static com.datastax.astra.client.model.Filters.eq;
import static com.datastax.astra.client.model.Filters.gt;
import static com.datastax.astra.client.model.Filters.lt;
import static com.datastax.astra.client.model.FindOneOptions.Builder.vector;
import static com.datastax.astra.client.model.FindOneOptions.Builder.sort;
import static com.datastax.astra.client.model.Projections.exclude;
import static com.datastax.astra.client.model.Projections.include;

Expand Down Expand Up @@ -41,7 +41,7 @@ public static void main(String[] args) {
gt("field2", 10),
lt("field3", 20),
eq("field4", "value")),
vector(new float[] {0.25f, 0.25f, 0.25f,0.25f, 0.25f})
sort(new float[] {0.25f, 0.25f, 0.25f,0.25f, 0.25f})
.projection(include("field", "field2", "field3"))
.projection(exclude("_id"))
.includeSimilarity()
Expand Down
2 changes: 1 addition & 1 deletion tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>com.datastax.astra</groupId>
<artifactId>astra-db-java</artifactId>
<version>${project.version}</version>
<version>1.0.0-beta1</version>
</dependency>

<dependency>
Expand Down

0 comments on commit 1f6a342

Please sign in to comment.