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 {
- Alphabetic
- By Inheritance
- FlinkTestkit
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FlinkTestkit()
Type Members
- implicit class InletTapOps[T] extends AnyRef
- implicit class OutletTapOps[T] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def config: Config
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getInletAsTap[In](in: CodecInlet[In], inStream: DataStream[In], clazz: Class[In]): FlinkInletTap[In]
- def getOutletAsTap[Out](out: CodecOutlet[Out], clazz: Class[Out]): FlinkOutletTap[Out]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def inletAsTap[In](in: CodecInlet[In], inStream: DataStream[In])(implicit arg0: TypeInformation[In]): FlinkInletTap[In]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def outletAsTap[Out](out: CodecOutlet[Out])(implicit arg0: TypeInformation[Out]): FlinkOutletTap[Out]
-
def
run(flinkStreamlet: FlinkStreamlet, inletTaps: List[FlinkInletTap[_]], outletTaps: List[FlinkOutletTap[_]], env: StreamExecutionEnvironment): Unit
Java API
Java API
Runs the
flinkStreamlet
usinginletTaps
as the sources andoutletTaps
as the sinks. Based on the port name the appropriateinletTap
andoutletTap
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
-
def
run(flinkStreamlet: FlinkStreamlet, inletTaps: Seq[FlinkInletTap[_]], outletTaps: Seq[FlinkOutletTap[_]], env: StreamExecutionEnvironment): Unit
Runs the
flinkStreamlet
usinginletTaps
as the sources andoutletTaps
as the sinks.Runs the
flinkStreamlet
usinginletTaps
as the sources andoutletTaps
as the sinks. Based on the port name the appropriateinletTap
andoutletTap
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val testTimeout: FiniteDuration
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated