Skip to content

Commit f313dc7

Browse files
committed
fix(vectorindex): return booleans from isHnsw/Flat/Dynamic methods
1 parent bbc5ab2 commit f313dc7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/collections/VectorIndex.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public static Kind valueOfJson(String jsonValue) {
4646
}
4747

4848
/** Is this vector index of type HNSW? */
49-
default Hnsw isHnsw() {
50-
return _as(VectorIndex.Kind.HNSW);
49+
default boolean isHnsw() {
50+
return _is(VectorIndex.Kind.HNSW);
5151
}
5252

5353
/** Get as {@link Hnsw} instance. */
@@ -56,8 +56,8 @@ default Hnsw asHnsw() {
5656
}
5757

5858
/** Is this vector index of type FLAT? */
59-
default Flat isFlat() {
60-
return _as(VectorIndex.Kind.FLAT);
59+
default boolean isFlat() {
60+
return _is(VectorIndex.Kind.FLAT);
6161
}
6262

6363
/** Get as {@link Flat} instance. */
@@ -66,8 +66,8 @@ default Flat asFlat() {
6666
}
6767

6868
/** Is this vector index of type DYNAMIC? */
69-
default Dynamic isDynamic() {
70-
return _as(VectorIndex.Kind.DYNAMIC);
69+
default boolean isDynamic() {
70+
return _is(VectorIndex.Kind.DYNAMIC);
7171
}
7272

7373
/** Get as {@link Dynamic} instance. */

0 commit comments

Comments
 (0)