You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/features/datatypes/collections/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,7 @@ client.execute('SELECT map_val FROM tbl')
73
73
74
74
### Vector
75
75
76
-
As of version 4.7.0 the driver also includes support for the vector type available in Cassandra 5.0. Vectors are represented as instances of
77
-
the [Float32Array] class. For example, to create and write to a vector with three dimensions you can do the following:
76
+
The driver supports vectors of arbitrary subtypes available in Apache Cassandra 5.0. Vectors are represented as instances of `cassandra.types.Vector` class. For example, to create and write to a vector with three dimensions you can do the following:
78
77
79
78
```javascript
80
79
awaitc.connect()
@@ -84,8 +83,10 @@ await c.connect()
84
83
.then(() =>c.execute("create custom index ann_index on test.foo(j) using 'StorageAttachedIndex'"))
85
84
86
85
// Base inserts using simple and prepared statements
In driver versions 4.7.0 - 4.7.2, the vector of floats was represented as a [Float32Array]. This is still supported for backward compatibility, but it is deprecated, and it is recommended to use the `cassandra.types.Vector` class instead.
0 commit comments