PrimitiveViewT - the type of the underlying primitive view, provided by the runner
<ViewT> the type of the value(s) accessible via this PCollectionView@Internal public abstract class ViewFn<PrimitiveViewT,ViewT> extends java.lang.Object implements java.io.Serializable
A function to adapt a primitive "view" of a PCollection - some materialization
specified in the Beam model and implemented by the runner - to a user-facing view type
for side input.
Both the underlying primitive view and the user-facing view are immutable.
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.
| Constructor and Description |
|---|
ViewFn() |
| Modifier and Type | Method and Description |
|---|---|
abstract ViewT |
apply(PrimitiveViewT contents)
A function to adapt a primitive view type to a desired view type.
|
abstract Materialization<PrimitiveViewT> |
getMaterialization()
Gets the materialization of this
ViewFn. |
public abstract Materialization<PrimitiveViewT> getMaterialization()
ViewFn.public abstract ViewT apply(PrimitiveViewT contents)