Class StreamTaskExternallyInducedSourceInput<T>
- java.lang.Object
-
- org.apache.flink.streaming.runtime.io.StreamTaskSourceInput<T>
-
- org.apache.flink.streaming.runtime.io.StreamTaskExternallyInducedSourceInput<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.flink.runtime.io.AvailabilityProvider,org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput,PushingAsyncDataInput<T>,StreamTaskInput<T>
public class StreamTaskExternallyInducedSourceInput<T> extends StreamTaskSourceInput<T>
A subclass ofStreamTaskSourceInputforExternallyInducedSourceReader.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
org.apache.flink.runtime.io.AvailabilityProvider.AvailabilityHelper
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.runtime.io.PushingAsyncDataInput
PushingAsyncDataInput.DataOutput<T>
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.streaming.runtime.io.StreamTaskInput
UNSPECIFIED
-
-
Constructor Summary
Constructors Constructor Description StreamTaskExternallyInducedSourceInput(SourceOperator<T,?> operator, java.util.function.Consumer<Long> checkpointTriggeringHook, int inputGateIndex, int inputIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockUntil(CompletableFuture<?> blockFuture)DataInputStatusemitNext(PushingAsyncDataInput.DataOutput<T> output)Pushes elements 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()-
Methods inherited from class org.apache.flink.streaming.runtime.io.StreamTaskSourceInput
blockConsumption, checkpointStarted, checkpointStopped, close, convertToPriorityEvent, getChannelInfos, getInputGateIndex, getInputIndex, getNumberOfInputChannels, getOperator, getOperatorID, prepareSnapshot, resumeConsumption
-
-
-
-
Constructor Detail
-
StreamTaskExternallyInducedSourceInput
public StreamTaskExternallyInducedSourceInput(SourceOperator<T,?> operator, java.util.function.Consumer<Long> checkpointTriggeringHook, int inputGateIndex, int inputIndex)
-
-
Method Detail
-
blockUntil
public void blockUntil(CompletableFuture<?> blockFuture)
-
emitNext
public DataInputStatus emitNext(PushingAsyncDataInput.DataOutput<T> output) throws Exception
Description copied from interface:PushingAsyncDataInputPushes elements to the output from current data input, and returns the input status to indicate whether there are more available data in current input.This method should be non blocking.
- Specified by:
emitNextin interfacePushingAsyncDataInput<T>- Overrides:
emitNextin classStreamTaskSourceInput<T>- Throws:
Exception
-
getAvailableFuture
public CompletableFuture<?> getAvailableFuture()
- Specified by:
getAvailableFuturein interfaceorg.apache.flink.runtime.io.AvailabilityProvider- Overrides:
getAvailableFuturein classStreamTaskSourceInput<T>
-
-