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,AvailabilityProvider,CheckpointableInput,PushingAsyncDataInput<T>,StreamTaskInput<T>
A subclass of
StreamTaskSourceInput for ExternallyInducedSourceReader.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AvailabilityProvider.AvailabilityHelperNested classes/interfaces inherited from interface org.apache.flink.streaming.runtime.io.PushingAsyncDataInput
PushingAsyncDataInput.DataOutput<T> -
Field Summary
Fields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLEFields inherited from interface org.apache.flink.streaming.runtime.io.StreamTaskInput
UNSPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionStreamTaskExternallyInducedSourceInput(SourceOperator<T, ?> operator, Consumer<Long> checkpointTriggeringHook, int inputGateIndex, int inputIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidblockUntil(CompletableFuture<?> blockFuture) emitNext(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.Methods inherited from class org.apache.flink.streaming.runtime.io.StreamTaskSourceInput
blockConsumption, checkpointStarted, checkpointStopped, close, convertToPriorityEvent, getChannelInfos, getInputGateIndex, getInputIndex, getNumberOfInputChannels, getOperator, getOperatorID, prepareSnapshot, resumeConsumptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailable
-
Constructor Details
-
StreamTaskExternallyInducedSourceInput
public StreamTaskExternallyInducedSourceInput(SourceOperator<T, ?> operator, Consumer<Long> checkpointTriggeringHook, int inputGateIndex, int inputIndex)
-
-
Method Details
-
blockUntil
-
emitNext
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
- Specified by:
getAvailableFuturein interfaceAvailabilityProvider- Overrides:
getAvailableFuturein classStreamTaskSourceInput<T>- Returns:
- a future that is completed if the respective provider is available.
-