public final class Transaction extends UpdateBuilder<Transaction>
Firestore#runTransaction(Function)
Modifier and Type | Class and Description |
---|---|
static interface |
Transaction.Function<T>
User callback that takes a Firestore Transaction
|
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<DocumentSnapshot> |
get(DocumentReference documentRef)
Reads the document referred to by the provided DocumentReference.
|
com.google.api.core.ApiFuture<QuerySnapshot> |
get(Query query)
Returns the result set from the provided query.
|
com.google.api.core.ApiFuture<List<DocumentSnapshot>> |
getAll(DocumentReference... documentReferences)
Retrieves multiple documents from Firestore.
|
com.google.api.core.ApiFuture<List<DocumentSnapshot>> |
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.
|
@Nonnull public com.google.api.core.ApiFuture<DocumentSnapshot> get(@Nonnull DocumentReference documentRef)
@Nonnull public com.google.api.core.ApiFuture<List<DocumentSnapshot>> getAll(@Nonnull DocumentReference... documentReferences)
documentReferences
- List of Document References to fetch.@Nonnull public com.google.api.core.ApiFuture<List<DocumentSnapshot>> getAll(@Nonnull DocumentReference[] documentReferences, @Nullable FieldMask fieldMask)
documentReferences
- Array with Document References to fetch.fieldMask
- If set, specifies the subset of fields to return.@Nonnull public com.google.api.core.ApiFuture<QuerySnapshot> get(@Nonnull Query query)
Copyright © 2019 Google LLC. All rights reserved.