Skip to content

Commit e9ffe5a

Browse files
authored
Merge pull request #527 from weaviate/v6-cleanups
v6: Small fixes
2 parents 1d81b12 + f313dc7 commit e9ffe5a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
public record Sharding(
1010
@SerializedName("virtualPerPhysical") Integer virtualPerPhysical,
11-
@SerializedName("desiredCound") Integer desiredCount,
11+
@SerializedName("desiredCount") Integer desiredCount,
1212
@SerializedName("desiredVirtualCount") Integer desiredVirtualCount) {
1313

1414
public static Sharding of(Function<Builder, ObjectBuilder<Sharding>> fn) {

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)