public class PCollectionViewTranslation
extends java.lang.Object
Constructor and Description |
---|
PCollectionViewTranslation() |
Modifier and Type | Method and Description |
---|---|
static ViewFn<?,?> |
viewFnFromProto(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec viewFn)
Converts a
RunnerApi.FunctionSpec into a ViewFn using the URN. |
static PCollectionView<?> |
viewFromProto(org.apache.beam.model.pipeline.v1.RunnerApi.SideInput sideInput,
java.lang.String localName,
PCollection<?> pCollection,
org.apache.beam.model.pipeline.v1.RunnerApi.PTransform parDoTransform,
RehydratedComponents components)
Create a
PCollectionView from a side input spec and an already-deserialized PCollection that should be wired up. |
static WindowMappingFn<?> |
windowMappingFnFromProto(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec windowMappingFn)
Converts a
RunnerApi.FunctionSpec into a WindowMappingFn using the URN. |
public static PCollectionView<?> viewFromProto(org.apache.beam.model.pipeline.v1.RunnerApi.SideInput sideInput, java.lang.String localName, PCollection<?> pCollection, org.apache.beam.model.pipeline.v1.RunnerApi.PTransform parDoTransform, RehydratedComponents components) throws java.io.IOException
PCollectionView
from a side input spec and an already-deserialized PCollection
that should be wired up.java.io.IOException
public static ViewFn<?,?> viewFnFromProto(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec viewFn) throws org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.InvalidProtocolBufferException
RunnerApi.FunctionSpec
into a ViewFn
using the URN.org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.InvalidProtocolBufferException
public static WindowMappingFn<?> windowMappingFnFromProto(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec windowMappingFn) throws org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.InvalidProtocolBufferException
RunnerApi.FunctionSpec
into a WindowMappingFn
using the URN.org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.InvalidProtocolBufferException