Package | Description |
---|---|
com.google.cloud.firestore |
Modifier and Type | Class and Description |
---|---|
class |
QueryDocumentSnapshot
A QueryDocumentSnapshot contains data read from a document in a Firestore database as part of a
query.
|
Modifier and Type | Method and Description |
---|---|
ApiFuture<DocumentSnapshot> |
DocumentReference.get()
Reads the document referenced by this DocumentReference.
|
ApiFuture<DocumentSnapshot> |
Transaction.get(DocumentReference documentRef)
Reads the document referred to by the provided DocumentReference.
|
ApiFuture<List<DocumentSnapshot>> |
Transaction.getAll(DocumentReference... documentReferences)
Retrieves multiple documents from Firestore.
|
ApiFuture<List<DocumentSnapshot>> |
Firestore.getAll(DocumentReference... documentReferences)
Retrieves multiple documents from Firestore.
|
ApiFuture<List<DocumentSnapshot>> |
Transaction.getAll(DocumentReference[] documentReferences,
FieldMask fieldMask)
Retrieves multiple documents from Firestore, while optionally applying a field mask to reduce
the amount of data transmitted from the backend.
|
ApiFuture<List<DocumentSnapshot>> |
Firestore.getAll(DocumentReference[] documentReferences,
FieldMask fieldMask)
Retrieves multiple documents from Firestore, while optionally applying a field mask to reduce
the amount of data transmitted.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.endAt(DocumentSnapshot snapshot)
Creates and returns a new Query that ends at the provided document (inclusive).
|
Query |
Query.endBefore(DocumentSnapshot snapshot)
Creates and returns a new Query that ends before the provided document (exclusive).
|
Query |
Query.startAfter(DocumentSnapshot snapshot)
Creates and returns a new Query that starts after the provided document (exclusive).
|
Query |
Query.startAt(DocumentSnapshot snapshot)
Creates and returns a new Query that starts at the provided document (inclusive).
|
Modifier and Type | Method and Description |
---|---|
ListenerRegistration |
DocumentReference.addSnapshotListener(EventListener<DocumentSnapshot> listener)
Starts listening to the document referenced by this DocumentReference.
|
ListenerRegistration |
DocumentReference.addSnapshotListener(Executor executor,
EventListener<DocumentSnapshot> listener)
Starts listening to the document referenced by this DocumentReference.
|
void |
Query.stream(ApiStreamObserver<DocumentSnapshot> responseObserver)
Executes the query and streams the results as a StreamObserver of DocumentSnapshots.
|
Copyright © 2019 Google LLC. All rights reserved.