Skip to content

Commit 42cc0e5

Browse files
committed
Tweaks
1 parent 7c15d5d commit 42cc0e5

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Constant.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static com.google.cloud.firestore.PipelineUtils.encodeValue;
44

5+
import com.google.api.core.InternalApi;
56
import com.google.cloud.Timestamp;
67
import com.google.cloud.firestore.Blob;
78
import com.google.cloud.firestore.DocumentReference;
@@ -51,10 +52,12 @@ public static Constant of(DocumentReference value) {
5152
return new Constant(value);
5253
}
5354

55+
@InternalApi
5456
public static Constant of(Value value) {
5557
return new Constant(value);
5658
}
5759

60+
@InternalApi
5861
static Constant of(Object value) {
5962
if (value == null) {
6063
return new Constant(null);
@@ -83,15 +86,15 @@ static Constant of(Object value) {
8386
}
8487
}
8588

86-
public static <T> Constant ofArray(Iterable<T> value) {
89+
public static <T> Constant of(Iterable<T> value) {
8790
return new Constant(value);
8891
}
8992

90-
public static <T> Constant ofArray(T[] value) {
93+
public static <T> Constant of(T[] value) {
9194
return new Constant(Arrays.asList(value)); // Convert array to list
9295
}
9396

94-
public static <T> Constant ofMap(Map<String, T> value) {
97+
public static <T> Constant of(Map<String, T> value) {
9598
return new Constant(value);
9699
}
97100

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Function.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public static EuclideanDistance euclideanDistance(String field, double[] other)
317317
return new EuclideanDistance(Field.of(field), Constant.ofVector(other));
318318
}
319319

320-
public static Generic function(String name, List<Expr> params) {
321-
return new Generic(name, params);
320+
public static Function function(String name, List<Expr> params) {
321+
return new Function(name, params);
322322
}
323323
}

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Generic.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)