Send feedback
Class QuerySnapshot (3.28.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.28.0 keyboard_arrow_down
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 )
Send feedback
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 2024-12-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[],[]]