Class TestStreamSource<T>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.beam.sdk.values.WindowedValue<T>>

    public class TestStreamSource<T>
    extends org.apache.flink.streaming.api.functions.source.RichSourceFunction<org.apache.beam.sdk.values.WindowedValue<T>>
    Flink source for executing TestStream.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.SourceFunction

        org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      TestStreamSource​(org.apache.beam.sdk.transforms.SerializableFunction<byte[],​org.apache.beam.sdk.testing.TestStream<T>> testStreamDecoder, byte[] payload)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void run​(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.beam.sdk.values.WindowedValue<T>> ctx)  
      • Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

        close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestStreamSource

        public TestStreamSource​(org.apache.beam.sdk.transforms.SerializableFunction<byte[],​org.apache.beam.sdk.testing.TestStream<T>> testStreamDecoder,
                                byte[] payload)
    • Method Detail

      • run

        public void run​(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.beam.sdk.values.WindowedValue<T>> ctx)
                 throws org.apache.beam.sdk.coders.CoderException
        Throws:
        org.apache.beam.sdk.coders.CoderException
      • cancel

        public void cancel()