Skip to content

Commit 7dcb116

Browse files
committed
test
1 parent 05aeb6f commit 7dcb116

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation/ListCollections.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
import io.stargate.sdk.json.domain.CollectionDefinition;
44

55
public class ListCollections {
6-
public static void main(String[] args) {
7-
// Given an active db
8-
AstraDB db = new AstraDB("<token>", "<api_endpoint>");
9-
// Iterate over all collections
10-
db.findAllCollections().forEach(col -> {
11-
System.out.println("name=" + col.getName());
12-
if (col.getOptions() != null && col.getOptions().getVector() != null) {
13-
CollectionDefinition.Options.Vector vector = col.getOptions().getVector();
14-
System.out.println("dim=" + vector.getDimension());
15-
System.out.println("metric=" + vector.getMetric());
16-
}
17-
});
18-
}
6+
public static void main(String[] args) {
7+
// Given an active db
8+
AstraDB db = new AstraDB("<token>", "<api_endpoint>");
9+
// Iterate over all collections
10+
db.findAllCollections().forEach(col -> {
11+
System.out.println("name=" + col.getName());
12+
if (col.getOptions() != null && col.getOptions().getVector() != null) {
13+
CollectionDefinition.Options.Vector vector = col.getOptions().getVector();
14+
System.out.println("dim=" + vector.getDimension());
15+
System.out.println("metric=" + vector.getMetric());
16+
}
17+
});
18+
}
1919
}

0 commit comments

Comments
 (0)