View.AsSingleton (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.transforms

Class View.AsSingleton<T>

    • Method Detail

      • hasDefaultValue

        public boolean hasDefaultValue()
        Returns whether this transform has a default value.
      • defaultValue

        public T defaultValue()
        Returns the default value of this transform, or null if there isn't one.
      • withDefaultValue

        public View.AsSingleton<T> withDefaultValue(T defaultValue)
        Default value to return for windows with no value in them.
      • validate

        public void validate(PCollection<T> input)
        Description copied from class: PTransform
        Called before invoking apply (which may be intercepted by the runner) to verify this transform is fully specified and applicable to the specified input.

        By default, does nothing.

        Overrides:
        validate in class PTransform<PCollection<T>,PCollectionView<T>>


Monitor your resources on the go

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

Send feedback about...

Cloud Dataflow