Interface PValue

All Superinterfaces:
PInput, POutput
All Known Subinterfaces:
PCollectionView<T>
All Known Implementing Classes:
PCollection, PCollectionViews.SimplePCollectionView, PValueBase

@Internal public interface PValue extends POutput, PInput
For internal use. No backwards compatibility guarantees.

A primitive value within Beam.

  • Method Details

    • getName

      String getName()
      Returns the name of this PValue.
    • expand

      Deprecated.
      A PValue always expands into itself. Calling expand() on a PValue is almost never appropriate.
      Expands this POutput into a list of its component output PValues.

      Not intended to be invoked directly by user code..

      Specified by:
      expand in interface PInput
      Specified by:
      expand in interface POutput
    • finishSpecifying

      @Internal void finishSpecifying(PInput upstreamInput, PTransform<?,?> upstreamTransform)
      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.

      Parameters:
      upstreamInput - the PInput the PTransform was applied to to produce this output
      upstreamTransform - the PTransform that produced this PValue