Skip to content

Commit 64f26ea

Browse files
committed
Fix after merge
1 parent 86ea2cc commit 64f26ea

File tree

2 files changed

+4
-46
lines changed

2 files changed

+4
-46
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import com.google.firebase.firestore.pipeline.AddFieldsStage
2525
import com.google.firebase.firestore.pipeline.AggregateFunction
2626
import com.google.firebase.firestore.pipeline.AggregateStage
2727
import com.google.firebase.firestore.pipeline.AggregateWithAlias
28-
import com.google.firebase.firestore.pipeline.BaseStage
2928
import com.google.firebase.firestore.pipeline.BooleanExpr
3029
import com.google.firebase.firestore.pipeline.CollectionGroupSource
3130
import com.google.firebase.firestore.pipeline.CollectionSource
@@ -132,7 +131,7 @@ class Pipeline
132131
private constructor(
133132
firestore: FirebaseFirestore,
134133
userDataReader: UserDataReader,
135-
stages: FluentIterable<BaseStage<*>>
134+
stages: FluentIterable<Stage<*>>
136135
) : AbstractPipeline(firestore, userDataReader, stages) {
137136
internal constructor(
138137
firestore: FirebaseFirestore,
@@ -761,15 +760,15 @@ class RealtimePipeline
761760
internal constructor(
762761
firestore: FirebaseFirestore,
763762
userDataReader: UserDataReader,
764-
stages: FluentIterable<BaseStage<*>>
763+
stages: FluentIterable<Stage<*>>
765764
) : AbstractPipeline(firestore, userDataReader, stages) {
766765
internal constructor(
767766
firestore: FirebaseFirestore,
768767
userDataReader: UserDataReader,
769-
stage: BaseStage<*>
768+
stage: Stage<*>
770769
) : this(firestore, userDataReader, FluentIterable.of(stage))
771770

772-
private fun append(stage: BaseStage<*>): RealtimePipeline {
771+
private fun append(stage: Stage<*>): RealtimePipeline {
773772
return RealtimePipeline(firestore, userDataReader, stages.append(stage))
774773
}
775774

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,28 +1854,6 @@ abstract class Expr internal constructor() {
18541854
fun mapGet(fieldName: String, keyExpression: Expr): Expr =
18551855
FunctionExpr("map_get", evaluateMapGet, fieldName, keyExpression)
18561856

1857-
/**
1858-
* Accesses a value from a map (object) field using the provided [keyExpression].
1859-
*
1860-
* @param mapExpression The expression representing the map.
1861-
* @param keyExpression The key to access in the map.
1862-
* @return A new [Expr] representing the value associated with the given key in the map.
1863-
*/
1864-
@JvmStatic
1865-
fun mapGet(mapExpression: Expr, keyExpression: Expr): Expr =
1866-
FunctionExpr("map_get", mapExpression, keyExpression)
1867-
1868-
/**
1869-
* Accesses a value from a map (object) field using the provided [keyExpression].
1870-
*
1871-
* @param fieldName The field name of the map field.
1872-
* @param keyExpression The key to access in the map.
1873-
* @return A new [Expr] representing the value associated with the given key in the map.
1874-
*/
1875-
@JvmStatic
1876-
fun mapGet(fieldName: String, keyExpression: Expr): Expr =
1877-
FunctionExpr("map_get", fieldName, keyExpression)
1878-
18791857
/**
18801858
* Creates an expression that merges multiple maps into a single map. If multiple maps have the
18811859
* same key, the later value is used.
@@ -2677,25 +2655,6 @@ abstract class Expr internal constructor() {
26772655
fun array(elements: List<Any?>): Expr =
26782656
FunctionExpr("array", evaluateArray, elements.map(::toExprOrConstant).toTypedArray())
26792657

2680-
/**
2681-
* Creates an expression that creates a Firestore array value from an input array.
2682-
*
2683-
* @param elements The input array to evaluate in the expression.
2684-
* @return A new [Expr] representing the array function.
2685-
*/
2686-
@JvmStatic
2687-
fun array(vararg elements: Any?): Expr =
2688-
FunctionExpr("array", elements.map(::toExprOrConstant).toTypedArray<Expr>())
2689-
2690-
/**
2691-
* Creates an expression that creates a Firestore array value from an input array.
2692-
*
2693-
* @param elements The input array to evaluate in the expression.
2694-
* @return A new [Expr] representing the array function.
2695-
*/
2696-
@JvmStatic
2697-
fun array(elements: List<Any?>): Expr =
2698-
FunctionExpr("array", elements.map(::toExprOrConstant).toTypedArray())
26992658
/**
27002659
* Creates an expression that concatenates an array with other arrays.
27012660
*

0 commit comments

Comments
 (0)