Skip to content

Commit a15ad1f

Browse files
committed
chore(config): rename Hfresh -> HFresh
1 parent 6827774 commit a15ad1f

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import io.weaviate.client6.v1.api.collections.vectorindex.Dynamic;
1717
import io.weaviate.client6.v1.api.collections.vectorindex.Flat;
18-
import io.weaviate.client6.v1.api.collections.vectorindex.Hfresh;
18+
import io.weaviate.client6.v1.api.collections.vectorindex.HFresh;
1919
import io.weaviate.client6.v1.api.collections.vectorindex.Hnsw;
2020
import io.weaviate.client6.v1.internal.TaggedUnion;
2121
import io.weaviate.client6.v1.internal.json.JsonEnum;
@@ -78,12 +78,12 @@ default Dynamic asDynamic() {
7878
}
7979

8080
/** Is this vector index of type HFRESH? */
81-
default boolean isHfresh() {
81+
default boolean isHFresh() {
8282
return _is(VectorIndex.Kind.HFRESH);
8383
}
8484

85-
/** Get as {@link Hfresh} instance. */
86-
default Hfresh asHfresh() {
85+
/** Get as {@link HFresh} instance. */
86+
default HFresh asHFresh() {
8787
return _as(VectorIndex.Kind.HFRESH);
8888
}
8989

@@ -101,7 +101,7 @@ private final void init(Gson gson) {
101101
addAdapter(gson, VectorIndex.Kind.HNSW, Hnsw.class);
102102
addAdapter(gson, VectorIndex.Kind.FLAT, Flat.class);
103103
addAdapter(gson, VectorIndex.Kind.DYNAMIC, Dynamic.class);
104-
addAdapter(gson, VectorIndex.Kind.HFRESH, Hfresh.class);
104+
addAdapter(gson, VectorIndex.Kind.HFRESH, HFresh.class);
105105
}
106106

107107
@SuppressWarnings("unchecked")

src/main/java/io/weaviate/client6/v1/api/collections/vectorindex/Hfresh.java renamed to src/main/java/io/weaviate/client6/v1/api/collections/vectorindex/HFresh.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import io.weaviate.client6.v1.api.collections.VectorIndex;
88
import io.weaviate.client6.v1.internal.ObjectBuilder;
99

10-
public record Hfresh(
10+
public record HFresh(
1111
@SerializedName("distance") Distance distance,
1212
@SerializedName("maxPostingSizeKB") Integer maxPostingSizeKb,
1313
@SerializedName("replicas") Integer replicaCount,
@@ -23,23 +23,23 @@ public Object _self() {
2323
return this;
2424
}
2525

26-
public static Hfresh of() {
26+
public static HFresh of() {
2727
return of(ObjectBuilder.identity());
2828
}
2929

30-
public static Hfresh of(Function<Builder, ObjectBuilder<Hfresh>> fn) {
30+
public static HFresh of(Function<Builder, ObjectBuilder<HFresh>> fn) {
3131
return fn.apply(new Builder()).build();
3232
}
3333

34-
public Hfresh(Builder builder) {
34+
public HFresh(Builder builder) {
3535
this(
3636
builder.distance,
3737
builder.maxPostingSizeKb,
3838
builder.replicaCount,
3939
builder.searchProbe);
4040
}
4141

42-
public static class Builder implements ObjectBuilder<Hfresh> {
42+
public static class Builder implements ObjectBuilder<HFresh> {
4343
private Distance distance;
4444
private Integer maxPostingSizeKb;
4545
private Integer replicaCount;
@@ -66,8 +66,8 @@ public final Builder searchProbe(int searchProbe) {
6666
}
6767

6868
@Override
69-
public Hfresh build() {
70-
return new Hfresh(this);
69+
public HFresh build() {
70+
return new HFresh(this);
7171
}
7272
}
7373
}

src/test/java/io/weaviate/client6/v1/internal/json/JSONTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import io.weaviate.client6.v1.api.collections.vectorindex.Distance;
3535
import io.weaviate.client6.v1.api.collections.vectorindex.Dynamic;
3636
import io.weaviate.client6.v1.api.collections.vectorindex.Flat;
37-
import io.weaviate.client6.v1.api.collections.vectorindex.Hfresh;
37+
import io.weaviate.client6.v1.api.collections.vectorindex.HFresh;
3838
import io.weaviate.client6.v1.api.collections.vectorindex.Hnsw;
3939
import io.weaviate.client6.v1.api.collections.vectorindex.MultiVector;
4040
import io.weaviate.client6.v1.api.collections.vectorindex.MultiVector.Aggregation;
@@ -1144,7 +1144,7 @@ public static Object[][] testCases() {
11441144
{
11451145
VectorConfig.class,
11461146
SelfProvidedVectorizer.of(none -> none
1147-
.vectorIndex(Hfresh.of(hfresh -> hfresh
1147+
.vectorIndex(HFresh.of(hfresh -> hfresh
11481148
.distance(Distance.DOT)
11491149
.maxPostingSizeKb(1)
11501150
.replicaCount(2)

0 commit comments

Comments
 (0)