TextIO.Read.Bound (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.io

Class TextIO.Read.Bound<T>

    • Method Detail

      • named

        public TextIO.Read.Bound<T> named(String name)
        Returns a new transform for reading from text files that's like this one but with the given step name.

        Does not modify this object.

      • from

        public TextIO.Read.Bound<T> from(String filepattern)
        Returns a new transform for reading from text files that's like this one but that reads from the file(s) with the given name or pattern. See TextIO.Read.from(java.lang.String) for a description of filepatterns.

        Does not modify this object.

      • withCoder

        public <X> TextIO.Read.Bound<X> withCoder(Coder<X> coder)
        Returns a new transform for reading from text files that's like this one but that uses the given Coder to decode each of the lines of the file into a value of type X.

        Does not modify this object.

        Type Parameters:
        X - the type of the decoded elements, and the elements of the resulting PCollection
      • withoutValidation

        public TextIO.Read.Bound<T> withoutValidation()
        Returns a new transform for reading from text files that's like this one but that has GCS path validation on pipeline creation disabled.

        This can be useful in the case where the GCS input does not exist at the pipeline creation time, but is expected to be available at execution time.

        Does not modify this object.

      • 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
        Overrides:
        populateDisplayData in class PTransform<PInput,PCollection<T>>
        Parameters:
        builder - The builder to populate with display data.
        See Also:
        HasDisplayData
      • getFilepattern

        public String getFilepattern()
      • needsValidation

        public boolean needsValidation()


Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Dataflow