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 |
---|---|
ApiFuture<DocumentSnapshot> |
get(DocumentReference documentRef)
Reads the document referred to by the provided DocumentReference.
|
ApiFuture<QuerySnapshot> |
get(Query query)
Returns the result set from the provided query.
|
ApiFuture<List<DocumentSnapshot>> |
getAll(DocumentReference... documentReferences)
Retrieves multiple documents from Firestore.
|
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 ApiFuture<DocumentSnapshot> get(@Nonnull DocumentReference documentRef)
@Nonnull public ApiFuture<List<DocumentSnapshot>> getAll(@Nonnull DocumentReference... documentReferences)
documentReferences
- List of Document References to fetch.@Nonnull public 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 ApiFuture<QuerySnapshot> get(@Nonnull Query query)
Copyright © 2019 Google LLC. All rights reserved.