Class WriteBatch
java.lang.Object
com.codename1.cloud.firebase.WriteBatch
A group of writes applied atomically by Firestore.commit(WriteBatch).
Paths are relative to the database root, such as cities/SF.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeletes a document.Replaces or creates a document.intsize()Returns
Updates only the given fields of an existing document.
-
Constructor Details
-
WriteBatch
public WriteBatch()
-
-
Method Details
-
set
Replaces or creates a document.
Parameters
-
path: the document path -
data: the full contents
Returns
this batch
-
-
update
Updates only the given fields of an existing document.
Parameters
-
path: the document path -
data: the fields to change
Returns
this batch
-
-
delete
Deletes a document.
Parameters
path: the document path
Returns
this batch
-
size
public int size()Returns
the number of queued writes
-