Packages

c

cloudflow.flink.testkit

FlinkTestkit

abstract class FlinkTestkit extends AnyRef

Testkit for testing Flink streamlets.

The steps to write a test using the testkit are:

1. Create the Flink streamlet 2. Setup inlet tap on inlet port with the input data 3. Setup outlet tap on outlet port 4. Run the test 5. Get data from outlet and assert

{{ "FlinkProcessor" should { "process streaming data" in {

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FlinkTestkit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FlinkTestkit()

Type Members

  1. implicit class InletTapOps[T] extends AnyRef
  2. implicit class OutletTapOps[T] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def config: Config
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getInletAsTap[In](in: CodecInlet[In], inStream: DataStream[In], clazz: Class[In]): FlinkInletTap[In]
  11. def getOutletAsTap[Out](out: CodecOutlet[Out], clazz: Class[Out]): FlinkOutletTap[Out]
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def inletAsTap[In](in: CodecInlet[In], inStream: DataStream[In])(implicit arg0: TypeInformation[In]): FlinkInletTap[In]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def outletAsTap[Out](out: CodecOutlet[Out])(implicit arg0: TypeInformation[Out]): FlinkOutletTap[Out]
  19. def run(flinkStreamlet: FlinkStreamlet, inletTaps: List[FlinkInletTap[_]], outletTaps: List[FlinkOutletTap[_]], env: StreamExecutionEnvironment): Unit

    Java API

    Java API

    Runs the flinkStreamlet using inletTaps as the sources and outletTaps as the sinks. Based on the port name the appropriate inletTap and outletTap are selected for building the stream computation graph. This graph is then submitted for execution to Flink runtime.

    flinkStreamlet

    the Sparklet to run

    inletTaps

    the collection of inlets

    outletTaps

    the collection of outlets

    env

    the stream execution environment where the job will run

    returns

    Unit

  20. def run(flinkStreamlet: FlinkStreamlet, inletTaps: Seq[FlinkInletTap[_]], outletTaps: Seq[FlinkOutletTap[_]], env: StreamExecutionEnvironment): Unit

    Runs the flinkStreamlet using inletTaps as the sources and outletTaps as the sinks.

    Runs the flinkStreamlet using inletTaps as the sources and outletTaps as the sinks. Based on the port name the appropriate inletTap and outletTap are selected for building the stream computation graph. This graph is then submitted for execution to Flink runtime.

    flinkStreamlet

    the Sparklet to run

    inletTaps

    the collection of inlets

    outletTaps

    the collection of outlets

    env

    the stream execution environment where the job will run

    returns

    Unit

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. val testTimeout: FiniteDuration
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped