Class TestSourceContext<T>
- java.lang.Object
-
- org.apache.flink.cdc.connectors.utils.TestSourceContext<T>
-
- All Implemented Interfaces:
org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
public class TestSourceContext<T> extends Object implements org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
A testableSourceFunction.SourceContext.
-
-
Constructor Summary
Constructors Constructor Description TestSourceContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcollect(T element)voidcollectWithTimestamp(T element, long timestamp)voidemitWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)ObjectgetCheckpointLock()LinkedBlockingQueue<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<T>>getCollectedOutputs()voidmarkAsTemporarilyIdle()org.apache.flink.streaming.runtime.streamrecord.StreamRecord<T>removeLatestOutput()
-
-
-
Method Detail
-
collect
public void collect(T element)
- Specified by:
collectin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
collectWithTimestamp
public void collectWithTimestamp(T element, long timestamp)
- Specified by:
collectWithTimestampin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
emitWatermark
public void emitWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
- Specified by:
emitWatermarkin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
markAsTemporarilyIdle
public void markAsTemporarilyIdle()
- Specified by:
markAsTemporarilyIdlein interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
getCheckpointLock
public Object getCheckpointLock()
- Specified by:
getCheckpointLockin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
close
public void close()
- Specified by:
closein interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
removeLatestOutput
public org.apache.flink.streaming.runtime.streamrecord.StreamRecord<T> removeLatestOutput()
-
getCollectedOutputs
public LinkedBlockingQueue<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<T>> getCollectedOutputs()
-
-