Class DatastoreV1.DeleteKeyWithSummary
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<DatastoreV1.WriteSuccessSummary>>
-
- org.apache.beam.sdk.io.gcp.datastore.DatastoreV1.DeleteKeyWithSummary
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- DatastoreV1
public static class DatastoreV1.DeleteKeyWithSummary extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<DatastoreV1.WriteSuccessSummary>>
APTransformthat deletesEntitiesassociated with the givenKeysfrom Cloud Datastore and returnsDatastoreV1.WriteSuccessSummaryfor each successful delete.- See Also:
DatastoreIO, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastoreV1.DeleteKeyWithSummarywithDatabaseId(java.lang.String databaseId)Returns a newDatastoreV1.DeleteKeyWithSummarythat deletes entities from the Cloud Datastore for the specified database.DatastoreV1.DeleteKeyWithSummarywithDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)Same aswithDatabaseId(String)but with aValueProvider.DatastoreV1.DeleteKeyWithSummarywithHintNumWorkers(int hintNumWorkers)Returns a newDatastoreV1.DeleteKeyWithSummarywith a different worker count hint for ramp-up throttling.DatastoreV1.DeleteKeyWithSummarywithHintNumWorkers(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> hintNumWorkers)Same aswithHintNumWorkers(int)but with aValueProvider.DatastoreV1.DeleteKeyWithSummarywithLocalhost(java.lang.String localhost)Returns a newDatastoreV1.DeleteKeyWithSummarythat deletes entities from the Cloud Datastore Emulator running locally on the specified host port.DatastoreV1.DeleteKeyWithSummarywithProjectId(java.lang.String projectId)Returns a newDatastoreV1.DeleteKeyWithSummarythat deletes entities from the Cloud Datastore for the specified project.DatastoreV1.DeleteKeyWithSummarywithProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)Same aswithProjectId(String)but with aValueProvider.DatastoreV1.DeleteKeyWithSummarywithRampupThrottlingDisabled()Returns a newDatastoreV1.DeleteKeyWithSummarythat does not throttle during ramp-up.-
Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setDisplayData, setResourceHints, validate, validate
-
-
-
-
Method Detail
-
withProjectId
public DatastoreV1.DeleteKeyWithSummary withProjectId(java.lang.String projectId)
Returns a newDatastoreV1.DeleteKeyWithSummarythat deletes entities from the Cloud Datastore for the specified project.
-
withDatabaseId
public DatastoreV1.DeleteKeyWithSummary withDatabaseId(java.lang.String databaseId)
Returns a newDatastoreV1.DeleteKeyWithSummarythat deletes entities from the Cloud Datastore for the specified database.
-
withLocalhost
public DatastoreV1.DeleteKeyWithSummary withLocalhost(java.lang.String localhost)
Returns a newDatastoreV1.DeleteKeyWithSummarythat deletes entities from the Cloud Datastore Emulator running locally on the specified host port.
-
withProjectId
public DatastoreV1.DeleteKeyWithSummary withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Same aswithProjectId(String)but with aValueProvider.
-
withDatabaseId
public DatastoreV1.DeleteKeyWithSummary withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Same aswithDatabaseId(String)but with aValueProvider.
-
withRampupThrottlingDisabled
public DatastoreV1.DeleteKeyWithSummary withRampupThrottlingDisabled()
Returns a newDatastoreV1.DeleteKeyWithSummarythat does not throttle during ramp-up.
-
withHintNumWorkers
public DatastoreV1.DeleteKeyWithSummary withHintNumWorkers(int hintNumWorkers)
Returns a newDatastoreV1.DeleteKeyWithSummarywith a different worker count hint for ramp-up throttling. Value is ignored if ramp-up throttling is disabled.
-
withHintNumWorkers
public DatastoreV1.DeleteKeyWithSummary withHintNumWorkers(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> hintNumWorkers)
Same aswithHintNumWorkers(int)but with aValueProvider.
-
-