public class StreamSource<T> extends AbstractUdfStreamOperator<T,SourceFunction<T>> implements StreamOperator<T>
StreamOperator for streaming sources.| Modifier and Type | Class and Description |
|---|---|
static class |
StreamSource.AutomaticWatermarkContext<T>
SourceFunction.SourceContext to be used for sources with automatic timestamps
and watermark emission. |
static class |
StreamSource.ManualWatermarkContext<T>
SourceFunction.SourceContext to be used for sources with manual timestamp
assignment and manual watermark emission. |
static class |
StreamSource.NonTimestampContext<T>
SourceFunction.SourceContext to be used for sources that don't emit watermarks. |
static class |
StreamSource.NonWatermarkContext<T>
SourceFunction.SourceContext to be used for sources that don't emit watermarks. |
userFunctionchainingStrategy, LOG, output| Constructor and Description |
|---|
StreamSource(SourceFunction<T> sourceFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
run(Object lockingObject,
Output<StreamRecord<T>> collector) |
close, dispose, getUserFunction, getUserFunctionParameters, notifyOfCompletedCheckpoint, open, restoreState, setOutputType, setup, snapshotOperatorStatecreateKeyValueState, createKeyValueState, disableInputCopy, getChainingStrategy, getContainingTask, getExecutionConfig, getOperatorConfig, getRuntimeContext, getStateBackend, getUserCodeClassloader, isInputCopyingDisabled, registerTimer, setChainingStrategy, setKeyContext, setKeyContextElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, dispose, getChainingStrategy, isInputCopyingDisabled, notifyOfCompletedCheckpoint, open, restoreState, setChainingStrategy, setKeyContextElement, setup, snapshotOperatorStatepublic StreamSource(SourceFunction<T> sourceFunction)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.