Skip to content

Commit 350843c

Browse files
committed
Realtime Pipeline Integration with SDK + some minor fixes
1 parent 3065e65 commit 350843c

File tree

5 files changed

+456
-13
lines changed

5 files changed

+456
-13
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,10 @@ class PipelineSource internal constructor(private val firestore: FirebaseFiresto
676676
* pipeline.
677677
* @return A new [Pipeline] object with [documents].
678678
*/
679-
fun documents(vararg documents: String): Pipeline =
679+
fun documents(vararg documents: String): Pipeline {
680680
// Validate document path by converting to DocumentReference
681-
documents(*documents.map(firestore::document).toTypedArray())
681+
return documents(*documents.map(firestore::document).toTypedArray())
682+
}
682683

683684
/**
684685
* Set the pipeline's source to the documents specified by the given DocumentReferences.
@@ -771,10 +772,6 @@ internal constructor(
771772

772773
private fun append(stage: Stage<*>): RealtimePipeline = with(stages.plus(stage))
773774

774-
fun execute(): Task<PipelineSnapshot> = execute(null)
775-
776-
fun execute(options: RealtimePipelineOptions): Task<PipelineSnapshot> = execute(options.options)
777-
778775
fun limit(limit: Int): RealtimePipeline = append(LimitStage(limit))
779776

780777
fun offset(offset: Int): RealtimePipeline = append(OffsetStage(offset))

0 commit comments

Comments
 (0)