public final class Transaction extends UpdateBuilder<Transaction>
Firestore#runTransaction(Function)
Modifier and Type | Class and Description |
---|---|
static interface |
Transaction.AsyncFunction<T>
User callback that takes a Firestore Async Transaction.
|
static interface |
Transaction.Function<T>
User callback that takes a Firestore Transaction.
|
committed
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<AggregateQuerySnapshot> |
get(AggregateQuery query)
Returns the result from the provided aggregate query.
|
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.
|
boolean |
hasTransactionId() |
public boolean hasTransactionId()
@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)
@Nonnull public com.google.api.core.ApiFuture<AggregateQuerySnapshot> get(@Nonnull AggregateQuery query)
Copyright © 2023 Google LLC. All rights reserved.