OUT
- Type of the output elementsSRC
- Type of the source function which has to be stoppablepublic class StoppableStreamSource<OUT,SRC extends SourceFunction<OUT> & org.apache.flink.api.common.functions.StoppableFunction> extends StreamSource<OUT,SRC>
AbstractStreamOperator.CountingOutput<OUT>
userFunction
chainingStrategy, config, latencyStats, LOG, metrics, output, timeServiceManager
构造器和说明 |
---|
StoppableStreamSource(SRC sourceFunction)
Takes a
SourceFunction that implements StoppableFunction . |
限定符和类型 | 方法和说明 |
---|---|
void |
stop()
Marks the source a stopped and calls
StoppableFunction.stop() on the user function. |
cancel, isCanceledOrStopped, markCanceledOrStopped, run, run
close, dispose, getUserFunction, getUserFunctionParameters, initializeState, notifyCheckpointComplete, open, setOutputType, setup, snapshotState
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getUserCodeClassloader, initializeState, numEventTimeTimers, numProcessingTimeTimers, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, snapshotState
public StoppableStreamSource(SRC sourceFunction)
SourceFunction
that implements StoppableFunction
.sourceFunction
- A SourceFunction
that implements StoppableFunction
.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.