Package com.google.cloud.firestore
Class Pipeline.Snapshot
java.lang.Object
com.google.cloud.firestore.Pipeline.Snapshot
- Enclosing class:
- Pipeline
A Snapshot contains the results of a pipeline execution. It can be used to access the
documents, execution time, and explain stats.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.TimestampThe time at which the pipeline producing this result is executed.Return stats from query explain.An array of all the results in the `Snapshot`.
-
Method Details
-
getResults
An array of all the results in the `Snapshot`.- Returns:
- The list of results.
-
getExecutionTime
The time at which the pipeline producing this result is executed.- Returns:
- The execution time of the pipeline.
-
getExplainStats
Return stats from query explain.If `explainOptions.mode` was set to `execute` or left unset, then this returns `null`.
- Returns:
- The explain stats, or `null` if not available.
-