use of com.google.firebase.firestore.model.mutation.Mutation in project firebase-android-sdk by firebase.
the class QueryEngineTestCase method addMutation.
/**
* Adds a mutation to the mutation queue.
*/
protected void addMutation(Mutation mutation) {
persistence.runTransaction("addMutation", () -> {
MutationBatch batch = mutationQueue.addMutationBatch(Timestamp.now(), Collections.emptyList(), Collections.singletonList(mutation));
Map<DocumentKey, Mutation> overlayMap = Collections.singletonMap(mutation.getKey(), mutation);
documentOverlayCache.saveOverlays(batch.getBatchId(), overlayMap);
});
}
Aggregations