public class TestStreamTranslation
extends java.lang.Object
TestStream
to and from RunnerApi
representations.Constructor and Description |
---|
TestStreamTranslation() |
Modifier and Type | Method and Description |
---|---|
static <T> TestStream<T> |
getTestStream(AppliedPTransform<PBegin,PCollection<T>,PTransform<PBegin,PCollection<T>>> application)
Converts an
AppliedPTransform , which may be a rehydrated transform or an original
TestStream , to a TestStream . |
static <T> TestStream<T> |
testStreamFromProtoPayload(org.apache.beam.model.pipeline.v1.RunnerApi.TestStreamPayload testStreamPayload,
Coder<T> coder) |
static <T> TestStream<T> |
testStreamFromProtoPayload(org.apache.beam.model.pipeline.v1.RunnerApi.TestStreamPayload testStreamPayload,
RehydratedComponents components) |
public static <T> TestStream<T> testStreamFromProtoPayload(org.apache.beam.model.pipeline.v1.RunnerApi.TestStreamPayload testStreamPayload, RehydratedComponents components) throws java.io.IOException
java.io.IOException
public static <T> TestStream<T> testStreamFromProtoPayload(org.apache.beam.model.pipeline.v1.RunnerApi.TestStreamPayload testStreamPayload, Coder<T> coder) throws java.io.IOException
java.io.IOException
public static <T> TestStream<T> getTestStream(AppliedPTransform<PBegin,PCollection<T>,PTransform<PBegin,PCollection<T>>> application) throws java.io.IOException
AppliedPTransform
, which may be a rehydrated transform or an original
TestStream
, to a TestStream
.java.io.IOException