Class PValueBase

    • Constructor Detail

      • PValueBase

        protected PValueBase​(Pipeline pipeline)
      • PValueBase

        protected PValueBase()
        No-arg constructor to allow subclasses to implement Serializable. The resulting PValueBase is not valid as a PValue, but may have other properties that are still usable, such as the tag in a PCollectionView.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of this PValueBase.

        By default, the name of a PValueBase is based on the name of the PTransform that produces it. It can be specified explicitly by calling setName(java.lang.String).

        Specified by:
        getName in interface PValue
        Throws:
        java.lang.IllegalStateException - if the name hasn't been set yet
      • setName

        public PValueBase setName​(java.lang.String name)
        Sets the name of this PValueBase. Returns this.
        Throws:
        java.lang.IllegalStateException - if this PValueBase has already been finalized and may no longer be set.
      • finishSpecifying

        public void finishSpecifying​(PInput input,
                                     PTransform<?,​?> transform)
        Description copied from interface: PValue
        After building, finalizes this PValue to make it ready for being used as an input to a PTransform.

        Automatically invoked whenever apply() is invoked on this PValue. Users should not normally call this explicitly.

        Specified by:
        finishSpecifying in interface PValue
        Parameters:
        input - the PInput the PTransform was applied to to produce this output
        transform - the PTransform that produced this PValue
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getKindString

        protected java.lang.String getKindString()
        Returns a String capturing the kind of this PValueBase.

        By default, uses the base name of the current class as its kind string.