Package cz.o2.proxima.flink.core
Class CommitLogSourceFunction<OutputT>
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction<OutputT>
-
- cz.o2.proxima.flink.core.CommitLogSourceFunction<OutputT>
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.streaming.api.checkpoint.CheckpointedFunction,org.apache.flink.streaming.api.functions.source.ParallelSourceFunction<OutputT>,org.apache.flink.streaming.api.functions.source.SourceFunction<OutputT>
@Experimental("API can be changed.") public class CommitLogSourceFunction<OutputT> extends org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction<OutputT>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommitLogSourceFunction(RepositoryFactory repositoryFactory, java.util.List<AttributeDescriptor<?>> attributeDescriptors, ResultExtractor<OutputT> resultExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidclose()voidinitializeState(org.apache.flink.runtime.state.FunctionInitializationContext context)voidnotifyCheckpointComplete(long l)voidopen(org.apache.flink.configuration.Configuration parameters)voidrun(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<OutputT> sourceContext)voidsnapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext functionSnapshotContext)-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
-
-
-
-
Constructor Detail
-
CommitLogSourceFunction
public CommitLogSourceFunction(RepositoryFactory repositoryFactory, java.util.List<AttributeDescriptor<?>> attributeDescriptors, ResultExtractor<OutputT> resultExtractor)
-
-
Method Detail
-
open
public void open(org.apache.flink.configuration.Configuration parameters)
- Specified by:
openin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
openin classorg.apache.flink.api.common.functions.AbstractRichFunction
-
run
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<OutputT> sourceContext) throws java.lang.Exception- Specified by:
runin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction<ReaderT>- Throws:
java.lang.Exception
-
cancel
public void cancel()
- Specified by:
cancelin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction<ReaderT>
-
close
public void close()
- Specified by:
closein interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
closein classorg.apache.flink.api.common.functions.AbstractRichFunction
-
notifyCheckpointComplete
public void notifyCheckpointComplete(long l)
- Specified by:
notifyCheckpointCompletein interfaceorg.apache.flink.api.common.state.CheckpointListener
-
snapshotState
public void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext functionSnapshotContext) throws java.lang.Exception- Specified by:
snapshotStatein interfaceorg.apache.flink.streaming.api.checkpoint.CheckpointedFunction- Throws:
java.lang.Exception
-
initializeState
public void initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context) throws java.lang.Exception- Specified by:
initializeStatein interfaceorg.apache.flink.streaming.api.checkpoint.CheckpointedFunction- Throws:
java.lang.Exception
-
-