Write.Bound (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1


Class Write.Bound<T>

    • Method Detail

      • populateDisplayData

        public void populateDisplayData(DisplayData.Builder builder)
        Description copied from class: PTransform
        Register display data for the given transform or component.

        populateDisplayData(DisplayData.Builder) is invoked by Pipeline runners to collect display data via DisplayData.from(HasDisplayData). Implementations may call super.populateDisplayData(builder) in order to register display data in the current namespace, but should otherwise use subcomponent.populateDisplayData(builder) to use the namespace of the subcomponent.

        By default, does not register any display data. Implementors may override this method to provide their own display data.

        Specified by:
        populateDisplayData in interface HasDisplayData
        populateDisplayData in class PTransform<PCollection<T>,PDone>
        builder - The builder to populate with display data.
        See Also:
      • getNumShards

        public int getNumShards()
        Returns the number of shards that will be produced in the output.
        See Also:
        for more information
      • getSink

        public Sink<T> getSink()
        Returns the Sink associated with this PTransform.
      • withNumShards

        public Write.Bound<T> withNumShards(int numShards)
        Returns a new Write.Bound that will write to the current Sink using the specified number of shards.

        This option should be used sparingly as it can hurt performance. See Write for more information.

        A value less than or equal to 0 will be equivalent to the default behavior of runner-controlled sharding.