Class DatastoreV1.Write

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Enclosing class:
    DatastoreV1

    public static class DatastoreV1.Write
    extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,​org.apache.beam.sdk.values.PDone>
    A PTransform that writes Entity objects to Cloud Datastore.
    See Also:
    DatastoreIO, Serialized Form
    • Method Detail

      • withProjectId

        public DatastoreV1.Write withProjectId​(java.lang.String projectId)
        Returns a new DatastoreV1.Write that writes to the Cloud Datastore for the specified project.
      • withLocalhost

        public 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.
      • withHintNumWorkers

        public DatastoreV1.Write withHintNumWorkers​(int hintNumWorkers)
        Returns a new DatastoreV1.Write with a different worker count hint for ramp-up throttling. Value is ignored if ramp-up throttling is disabled.
      • withHintNumWorkers

        public DatastoreV1.Write withHintNumWorkers​(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> hintNumWorkers)
        Same as withHintNumWorkers(int) but with a ValueProvider.