Class QuerySnapshot (3.33.2)
public class QuerySnapshot extends GenericQuerySnapshot<Query>
A QuerySnapshot contains the results of a query. It can contain zero or more DocumentSnapshot
objects.
Static Methods
withChanges(Query query, Timestamp readTime, DocumentSet documentSet, List<DocumentChange> documentChanges)
public static QuerySnapshot withChanges(Query query, Timestamp readTime, DocumentSet documentSet, List<DocumentChange> documentChanges)
Creates a new QuerySnapshot representing a snapshot of a Query with changed documents.
Parameters |
Name |
Description |
query |
Query
|
readTime |
com.google.cloud.Timestamp
|
documentSet |
com.google.cloud.firestore.DocumentSet
|
documentChanges |
List<DocumentChange>
|
withDocuments(Query query, Timestamp readTime, List<QueryDocumentSnapshot> documents)
public static QuerySnapshot withDocuments(Query query, Timestamp readTime, List<QueryDocumentSnapshot> documents)
Creates a new QuerySnapshot representing the results of a Query with added documents.
Constructors
QuerySnapshot(Query query, Timestamp readTime)
protected QuerySnapshot(Query query, Timestamp readTime)
Parameters |
Name |
Description |
query |
Query
|
readTime |
com.google.cloud.Timestamp
|
QuerySnapshot(Query query, Timestamp readTime, List<QueryDocumentSnapshot> documents, List<DocumentChange> documentChanges)
protected QuerySnapshot(Query query, Timestamp readTime, List<QueryDocumentSnapshot> documents, List<DocumentChange> documentChanges)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]