Package org.apache.iceberg.flink.source
Class StreamingMonitorFunction
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.streaming.api.functions.source.legacy.RichSourceFunction<FlinkInputSplit>
org.apache.iceberg.flink.source.StreamingMonitorFunction
- All Implemented Interfaces:
- Serializable,- org.apache.flink.api.common.functions.Function,- org.apache.flink.api.common.functions.RichFunction,- org.apache.flink.streaming.api.checkpoint.CheckpointedFunction,- org.apache.flink.streaming.api.functions.source.legacy.SourceFunction<FlinkInputSplit>
public class StreamingMonitorFunction
extends org.apache.flink.streaming.api.functions.source.legacy.RichSourceFunction<FlinkInputSplit>
implements org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
This is the single (non-parallel) monitoring task which takes a 
FlinkInputFormat, it is
 responsible for:
 - Monitoring snapshots of the Iceberg table.
- Creating the splitscorresponding to the incremental files
- Assigning them to downstream tasks for further processing.
The splits to be read are forwarded to the downstream StreamingReaderOperator which
 can have parallelism greater than one.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.legacy.SourceFunctionorg.apache.flink.streaming.api.functions.source.legacy.SourceFunction.SourceContext<T>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcancel()voidclose()voidinitializeState(org.apache.flink.runtime.state.FunctionInitializationContext context) voidopen(org.apache.flink.api.common.functions.OpenContext parameters) voidrun(org.apache.flink.streaming.api.functions.source.legacy.SourceFunction.SourceContext<FlinkInputSplit> ctx) voidsnapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunctiongetIterationRuntimeContext, getRuntimeContext, setRuntimeContext
- 
Constructor Details- 
StreamingMonitorFunction
 
- 
- 
Method Details- 
open- Specified by:
- openin interface- org.apache.flink.api.common.functions.RichFunction
- Overrides:
- openin class- org.apache.flink.api.common.functions.AbstractRichFunction
- Throws:
- Exception
 
- 
initializeStatepublic void initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context) throws Exception - Specified by:
- initializeStatein interface- org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
- Throws:
- Exception
 
- 
snapshotStatepublic void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) throws Exception - Specified by:
- snapshotStatein interface- org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
- Throws:
- Exception
 
- 
runpublic void run(org.apache.flink.streaming.api.functions.source.legacy.SourceFunction.SourceContext<FlinkInputSplit> ctx) throws Exception - Specified by:
- runin interface- org.apache.flink.streaming.api.functions.source.legacy.SourceFunction<FlinkInputSplit>
- Throws:
- Exception
 
- 
cancelpublic void cancel()- Specified by:
- cancelin interface- org.apache.flink.streaming.api.functions.source.legacy.SourceFunction<FlinkInputSplit>
 
- 
closepublic void close()- Specified by:
- closein interface- org.apache.flink.api.common.functions.RichFunction
- Overrides:
- closein class- org.apache.flink.api.common.functions.AbstractRichFunction
 
 
-