Class QuerySnapshot

All Implemented Interfaces:
Iterable<QueryDocumentSnapshot>

public class QuerySnapshot extends GenericQuerySnapshot<Query>
A QuerySnapshot contains the results of a query. It can contain zero or more DocumentSnapshot objects.
  • Constructor Details

  • Method Details

    • withDocuments

      public static QuerySnapshot withDocuments(Query query, com.google.cloud.Timestamp readTime, List<QueryDocumentSnapshot> documents)
      Creates a new QuerySnapshot representing the results of a Query with added documents.
    • withChanges

      public static QuerySnapshot withChanges(Query query, com.google.cloud.Timestamp readTime, com.google.cloud.firestore.DocumentSet documentSet, List<DocumentChange> documentChanges)
      Creates a new QuerySnapshot representing a snapshot of a Query with changed documents.