@Internal public final class StreamTaskSourceInput<T> extends Object implements StreamTaskInput<T>
StreamTaskInput that reads data from the SourceReaderOperator
and returns the InputStatus to indicate whether the source state is available,
unavailable or finished.PushingAsyncDataInput.DataOutput<T>UNSPECIFIED| 构造器和说明 |
|---|
StreamTaskSourceInput(SourceReaderOperator<T> operator) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
InputStatus |
emitNext(PushingAsyncDataInput.DataOutput<T> output)
Pushes the next element to the output from current data input, and returns
the input status to indicate whether there are more available data in
current input.
|
CompletableFuture<?> |
getAvailableFuture() |
int |
getInputIndex()
This method is invalid and never called by the one/source input processor.
|
public StreamTaskSourceInput(SourceReaderOperator<T> operator)
public InputStatus emitNext(PushingAsyncDataInput.DataOutput<T> output) throws Exception
PushingAsyncDataInputThis method should be non blocking.
emitNext 在接口中 PushingAsyncDataInput<T>Exceptionpublic CompletableFuture<?> getAvailableFuture()
getAvailableFuture 在接口中 org.apache.flink.runtime.io.AvailabilityProviderpublic int getInputIndex()
getInputIndex 在接口中 StreamTaskInput<T>public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.