public static class DatastoreV1.Write extends PTransform<PCollection<T>,PDone>
PTransform
that writes Entity
objects to Cloud Datastore.DatastoreIO
,
Serialized Formname, resourceHints
Modifier and Type | Method and Description |
---|---|
DatastoreV1.Write |
withHintNumWorkers(int hintNumWorkers)
Returns a new
DatastoreV1.Write with a different worker count hint for ramp-up throttling. |
DatastoreV1.Write |
withHintNumWorkers(ValueProvider<java.lang.Integer> hintNumWorkers)
Same as
withHintNumWorkers(int) but with a ValueProvider . |
DatastoreV1.Write |
withLocalhost(java.lang.String localhost)
Returns a new
DatastoreV1.Write that writes to the Cloud Datastore Emulator running locally on
the specified host port. |
DatastoreV1.Write |
withProjectId(java.lang.String projectId)
Returns a new
DatastoreV1.Write that writes to the Cloud Datastore for the specified project. |
DatastoreV1.Write |
withProjectId(ValueProvider<java.lang.String> projectId)
Same as
withProjectId(String) but with a ValueProvider . |
DatastoreV1.Write |
withRampupThrottlingDisabled()
Returns a new
DatastoreV1.Write that does not throttle during ramp-up. |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setResourceHints, validate
public DatastoreV1.Write withProjectId(java.lang.String projectId)
DatastoreV1.Write
that writes to the Cloud Datastore for the specified project.public DatastoreV1.Write withProjectId(ValueProvider<java.lang.String> projectId)
withProjectId(String)
but with a ValueProvider
.public DatastoreV1.Write withLocalhost(java.lang.String localhost)
DatastoreV1.Write
that writes to the Cloud Datastore Emulator running locally on
the specified host port.public DatastoreV1.Write withRampupThrottlingDisabled()
DatastoreV1.Write
that does not throttle during ramp-up.public DatastoreV1.Write withHintNumWorkers(int hintNumWorkers)
DatastoreV1.Write
with a different worker count hint for ramp-up throttling. Value
is ignored if ramp-up throttling is disabled.public DatastoreV1.Write withHintNumWorkers(ValueProvider<java.lang.Integer> hintNumWorkers)
withHintNumWorkers(int)
but with a ValueProvider
.