public class TestStreamSource<T>
extends org.apache.flink.streaming.api.functions.source.RichSourceFunction<org.apache.beam.sdk.util.WindowedValue<T>>
TestStream.| Constructor and Description |
|---|
TestStreamSource(org.apache.beam.sdk.transforms.SerializableFunction<byte[],org.apache.beam.sdk.testing.TestStream<T>> testStreamDecoder,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.beam.sdk.util.WindowedValue<T>> ctx) |
public TestStreamSource(org.apache.beam.sdk.transforms.SerializableFunction<byte[],org.apache.beam.sdk.testing.TestStream<T>> testStreamDecoder, byte[] payload)
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.beam.sdk.util.WindowedValue<T>> ctx) throws org.apache.beam.sdk.coders.CoderException
org.apache.beam.sdk.coders.CoderExceptionpublic void cancel()