Skip to content

Commit 04deedf

Browse files
committed
Fix from API Review
1 parent 8a58ed2 commit 04deedf

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

firebase-firestore/api.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ package com.google.firebase.firestore {
433433
method public com.google.firebase.firestore.Pipeline findNearest(String vectorField, com.google.firebase.firestore.VectorValue vectorValue, com.google.firebase.firestore.pipeline.FindNearestStage.DistanceMeasure distanceMeasure);
434434
method public com.google.firebase.firestore.Pipeline findNearest(String vectorField, double[] vectorValue, com.google.firebase.firestore.pipeline.FindNearestStage.DistanceMeasure distanceMeasure);
435435
method public com.google.firebase.firestore.Pipeline genericStage(com.google.firebase.firestore.pipeline.GenericStage stage);
436-
method public com.google.firebase.firestore.Pipeline genericStage(String name, java.lang.Object... arguments);
437436
method public com.google.firebase.firestore.Pipeline limit(int limit);
438437
method public com.google.firebase.firestore.Pipeline offset(int offset);
439438
method public com.google.firebase.firestore.Pipeline removeFields(com.google.firebase.firestore.pipeline.Field field, com.google.firebase.firestore.pipeline.Field... additionalFields);
@@ -991,7 +990,7 @@ package com.google.firebase.firestore.pipeline {
991990
method public final com.google.firebase.firestore.pipeline.Expr floor();
992991
method public static final com.google.firebase.firestore.pipeline.Expr floor(com.google.firebase.firestore.pipeline.Expr numericExpr);
993992
method public static final com.google.firebase.firestore.pipeline.Expr floor(String numericField);
994-
method public static final com.google.firebase.firestore.pipeline.FunctionExpr generic(String name, com.google.firebase.firestore.pipeline.Expr... expr);
993+
method public static final com.google.firebase.firestore.pipeline.Expr generic(String name, com.google.firebase.firestore.pipeline.Expr... expr);
995994
method public final com.google.firebase.firestore.pipeline.BooleanExpr gt(com.google.firebase.firestore.pipeline.Expr other);
996995
method public static final com.google.firebase.firestore.pipeline.BooleanExpr gt(com.google.firebase.firestore.pipeline.Expr left, com.google.firebase.firestore.pipeline.Expr right);
997996
method public static final com.google.firebase.firestore.pipeline.BooleanExpr gt(com.google.firebase.firestore.pipeline.Expr left, Object right);
@@ -1324,7 +1323,7 @@ package com.google.firebase.firestore.pipeline {
13241323
method public com.google.firebase.firestore.pipeline.Field field(String name);
13251324
method public com.google.firebase.firestore.pipeline.Expr floor(com.google.firebase.firestore.pipeline.Expr numericExpr);
13261325
method public com.google.firebase.firestore.pipeline.Expr floor(String numericField);
1327-
method public com.google.firebase.firestore.pipeline.FunctionExpr generic(String name, com.google.firebase.firestore.pipeline.Expr... expr);
1326+
method public com.google.firebase.firestore.pipeline.Expr generic(String name, com.google.firebase.firestore.pipeline.Expr... expr);
13281327
method public com.google.firebase.firestore.pipeline.BooleanExpr gt(com.google.firebase.firestore.pipeline.Expr left, com.google.firebase.firestore.pipeline.Expr right);
13291328
method public com.google.firebase.firestore.pipeline.BooleanExpr gt(com.google.firebase.firestore.pipeline.Expr left, Object right);
13301329
method public com.google.firebase.firestore.pipeline.BooleanExpr gt(String fieldName, com.google.firebase.firestore.pipeline.Expr expression);

firebase-firestore/src/main/java/com/google/firebase/firestore/Pipeline.kt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,6 @@ internal constructor(
102102
.addAllStages(stages.map { it.toProtoStage(userDataReader) })
103103
.build()
104104

105-
/**
106-
* Adds a stage to the pipeline by specifying the stage name as an argument. This does not offer
107-
* any type safety on the stage params and requires the caller to know the order (and optionally
108-
* names) of parameters accepted by the stage.
109-
*
110-
* This method provides a way to call stages that are supported by the Firestore backend but that
111-
* are not implemented in the SDK version being used.
112-
*
113-
* For stages with named parameters, use the [GenericStage] class instead.
114-
*
115-
* @param name The unique name of the stage to add.
116-
* @param arguments A list of ordered parameters to configure the stage's behavior.
117-
* @return A new [Pipeline] object with this stage appended to the stage list.
118-
*/
119-
fun genericStage(name: String, vararg arguments: Any): Pipeline =
120-
append(GenericStage.ofName(name).withArguments(arguments))
121-
122105
/**
123106
* Adds a stage to the pipeline by specifying the stage name as an argument. This does not offer
124107
* any type safety on the stage params and requires the caller to know the order (and optionally

firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/expressions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ abstract class Expr internal constructor() {
290290
return Field(fieldPath.internalPath)
291291
}
292292

293-
@JvmStatic fun generic(name: String, vararg expr: Expr) = FunctionExpr(name, expr)
293+
@JvmStatic fun generic(name: String, vararg expr: Expr): Expr = FunctionExpr(name, expr)
294294

295295
/**
296296
* Creates an expression that performs a logical 'AND' operation.

0 commit comments

Comments
 (0)