We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b343f4a commit 5354be1Copy full SHA for 5354be1
2 files changed
CHANGELOG.md
@@ -1,3 +1,7 @@
1
+## 0.1.6 (unreleased)
2
+
3
+- Added `byte[]` constructor to `PGbit`
4
5
## 0.1.5 (2024-06-25)
6
7
- Added support for `halfvec`, `bit`, and `sparsevec` types
src/main/java/com/pgvector/PGbit.java
@@ -39,6 +39,17 @@ public PGbit(boolean[] v) {
39
}
40
41
42
+ /**
43
+ * Constructor
44
+ *
45
+ * @param v byte array
46
+ */
47
+ public PGbit(byte[] v) {
48
+ this();
49
+ length = v.length * 8;
50
+ data = v;
51
+ }
52
53
/**
54
* Constructor
55
*
0 commit comments