You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreBatchWriter.java
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreWriter.java
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@
24
24
publicinterfaceDatastoreWriter {
25
25
26
26
/**
27
-
* Datastore add operation. This method will automatically allocate an id if necessary.
27
+
* Datastore add operation: inserts the provided entity. This method will automatically allocate
28
+
* an id if necessary.
28
29
*
29
30
* @param entity the entity to add
30
31
* @return an {@code Entity} with the same properties and a key that is either newly allocated
@@ -35,8 +36,8 @@ public interface DatastoreWriter {
35
36
Entityadd(FullEntity<?> entity);
36
37
37
38
/**
38
-
* Datastore add operation. This method will automatically allocate id for any entity with an
39
-
* incomplete key.
39
+
* Datastore add operation: inserts the provided entities. This method will automatically allocate
40
+
* id for any entity with an incomplete key.
40
41
*
41
42
* @return a list of {@code Entity} ordered by input with the same properties and a key that
42
43
* is either newly allocated or the same one if was already complete
@@ -53,8 +54,8 @@ public interface DatastoreWriter {
53
54
voidupdate(Entity... entities);
54
55
55
56
/**
56
-
* A Datastore put (a.k.a upsert) operation. This method will automatically allocate an id if
57
-
* necessary.
57
+
* A Datastore put (a.k.a upsert) operation: inserts an entity if it does not exist, updates it
58
+
* otherwise. This method will automatically allocate an id if necessary.
58
59
*
59
60
* @param entity the entity to put
60
61
* @return an {@code Entity} with the same properties and a key that is either newly allocated
@@ -65,8 +66,8 @@ public interface DatastoreWriter {
65
66
Entityput(FullEntity<?> entity);
66
67
67
68
/**
68
-
* A Datastore put (a.k.a upsert) operation. This method will automatically allocate id for any
69
-
* entity with an incomplete key.
69
+
* A Datastore put (a.k.a upsert) operation: creates an entity if it does not exist, updates it
70
+
* otherwise. This method will automatically allocate id for any entity with an incomplete key.
70
71
*
71
72
* @return a list of updated or inserted {@code Entity}, ordered by input. Returned keys are
72
73
* either newly allocated or the same one if was already complete.
@@ -76,7 +77,7 @@ public interface DatastoreWriter {
76
77
List<Entity> put(FullEntity<?>... entities);
77
78
78
79
/**
79
-
* A datastore delete operation. It is OK request a deletion of a non-existing entity.
80
+
* A datastore delete operation. It is OK to request the deletion of a non-existing key.
0 commit comments