@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| Constructor and Description |
|---|
StreamTaskSourceInput(SourceReaderOperator<T> operator) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface PushingAsyncDataInput<T>Exceptionpublic CompletableFuture<?> getAvailableFuture()
getAvailableFuture in interface org.apache.flink.runtime.io.AvailabilityProviderpublic int getInputIndex()
getInputIndex in interface StreamTaskInput<T>public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.