Interface PCollectionView<T>
- Type Parameters:
T
- the type of the value(s) accessible via thisPCollectionView
- All Superinterfaces:
PInput
,POutput
,PValue
,Serializable
- All Known Implementing Classes:
PCollectionViews.SimplePCollectionView
PCollectionView<T>
is an immutable view of a PCollection
as a value of type T
that can be accessed as a side input to a ParDo
transform.
A PCollectionView
should always be the output of a PTransform
. It is the joint responsibility of this transform and
each PipelineRunner
to implement the view in a runner-specific manner.
The most common case is using the View
transforms to prepare a PCollection
for
use as a side input to ParDo
. See View.asSingleton()
, View.asIterable()
,
and View.asMap()
for more detail on specific views available in the SDK.
NOTE: View methods should not be considered to be user-accessible. They are implementation details of how a Runner obtains information required to construct a view, and are subject to change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionCoder
<?> Deprecated.this method will be removed entirely.For internal use only.TupleTag
<?> Deprecated.this method will be removed entirely.Deprecated.this method will be removed entirely.WindowingStrategy
<?, ?> Deprecated.this method will be removed entirely.For internal use only.Methods inherited from interface org.apache.beam.sdk.values.PInput
getPipeline
Methods inherited from interface org.apache.beam.sdk.values.POutput
finishSpecifyingOutput, getPipeline
Methods inherited from interface org.apache.beam.sdk.values.PValue
expand, finishSpecifying, getName
-
Method Details
-
getPCollection
For internal use only.Gets the
PCollection
thisPCollectionView
was created from.The
PCollection
may not be available in all contexts. -
getTagInternal
Deprecated.this method will be removed entirely. ThePCollection
underlying a side input, is part of the side input's specification with aParDo
transform, which will obtain that information via a package-private channel.For internal use only. -
getViewFn
Deprecated.For internal use only. -
getWindowMappingFn
For internal use only.Returns the
WindowMappingFn
used to map windows from a main input to the side input of thisPCollectionView
. -
getWindowingStrategyInternal
Deprecated.this method will be removed entirely. ThePCollection
underlying a side input, including itsWindowingStrategy
, is part of the side input's specification with aParDo
transform, which will obtain that information via a package-private channel.For internal use only. -
getCoderInternal
Deprecated.this method will be removed entirely. ThePCollection
underlying a side input, including itsCoder
, is part of the side input's specification with aParDo
transform, which will obtain that information via a package-private channel.For internal use only.
-