T
- the type of the value(s) accessible via this PCollectionView
public interface PCollectionView<T> extends PValue, java.io.Serializable
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.
Modifier and Type | Method and Description |
---|---|
Coder<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<?>>> |
getCoderInternal()
Deprecated.
this method will be removed entirely. The
PCollection underlying a side
input, including its Coder , is part of the side input's specification with a ParDo transform, which will obtain that information via a package-private channel. |
PCollection<?> |
getPCollection()
For internal use only.
|
TupleTag<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<?>>> |
getTagInternal()
Deprecated.
this method will be removed entirely. The
PCollection underlying a side
input, is part of the side input's specification with a ParDo transform, which will
obtain that information via a package-private channel. |
ViewFn<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<?>>,T> |
getViewFn()
|
WindowingStrategy<?,?> |
getWindowingStrategyInternal()
Deprecated.
this method will be removed entirely. The
PCollection underlying a side
input, including its WindowingStrategy , is part of the side input's specification
with a ParDo transform, which will obtain that information via a package-private
channel. |
WindowMappingFn<?> |
getWindowMappingFn()
For internal use only.
|
expand, finishSpecifying, getName
finishSpecifyingOutput, getPipeline
getPipeline
@Nullable @Internal PCollection<?> getPCollection()
Gets the PCollection
this PCollectionView
was created from.
The PCollection
may not be available in all contexts.
@Deprecated @Internal TupleTag<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<?>>> getTagInternal()
PCollection
underlying a side
input, is part of the side input's specification with a ParDo
transform, which will
obtain that information via a package-private channel.@Deprecated @Internal ViewFn<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<?>>,T> getViewFn()
ViewFn
for a side input is an
attribute of the side input's specification with a ParDo
transform, which will
obtain this specification via a package-private channel.@Experimental(value=CORE_RUNNERS_ONLY) @Internal WindowMappingFn<?> getWindowMappingFn()
Returns the WindowMappingFn
used to map windows from a main input to the side input
of this PCollectionView
.
@Deprecated @Internal WindowingStrategy<?,?> getWindowingStrategyInternal()
PCollection
underlying a side
input, including its WindowingStrategy
, is part of the side input's specification
with a ParDo
transform, which will obtain that information via a package-private
channel.@Deprecated @Internal Coder<java.lang.Iterable<org.apache.beam.sdk.util.WindowedValue<?>>> getCoderInternal()
PCollection
underlying a side
input, including its Coder
, is part of the side input's specification with a ParDo
transform, which will obtain that information via a package-private channel.