Java Code Examples for com.google.datastore.v1.Mutation#Builder
The following examples show how to use
com.google.datastore.v1.Mutation#Builder .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: V1TestUtil.java From beam with Apache License 2.0 | 4 votes |
@Override public Mutation.Builder apply(Entity entity) { return makeUpsert(entity); }
Example 2
Source File: V1TestUtil.java From beam with Apache License 2.0 | 4 votes |
@Override public Mutation.Builder apply(Entity entity) { return makeDelete(entity.getKey()); }
Example 3
Source File: DatastoreHelper.java From google-cloud-datastore with Apache License 2.0 | 2 votes |
/** * @param entity the entity to insert * @return a mutation that will insert an entity */ public static Mutation.Builder makeInsert(Entity entity) { return Mutation.newBuilder().setInsert(entity); }
Example 4
Source File: DatastoreHelper.java From google-cloud-datastore with Apache License 2.0 | 2 votes |
/** * @param entity the entity to update * @return a mutation that will update an entity */ public static Mutation.Builder makeUpdate(Entity entity) { return Mutation.newBuilder().setUpdate(entity); }
Example 5
Source File: DatastoreHelper.java From google-cloud-datastore with Apache License 2.0 | 2 votes |
/** * @param entity the entity to upsert * @return a mutation that will upsert an entity */ public static Mutation.Builder makeUpsert(Entity entity) { return Mutation.newBuilder().setUpsert(entity); }
Example 6
Source File: DatastoreHelper.java From google-cloud-datastore with Apache License 2.0 | 2 votes |
/** * @param key the key of the entity to delete * @return a mutation that will delete an entity */ public static Mutation.Builder makeDelete(Key key) { return Mutation.newBuilder().setDelete(key); }
Example 7
Source File: V1TestUtil.java From beam with Apache License 2.0 | votes |
Mutation.Builder apply(Entity entity);