Class IndexedInputGate
java.lang.Object
org.apache.flink.runtime.io.network.partition.consumer.InputGate
org.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate
- All Implemented Interfaces:
AutoCloseable,AvailabilityProvider,ChannelStateHolder,CheckpointableInput,PullingAsyncDataInput<BufferOrEvent>
- Direct Known Subclasses:
InputGateWithMetrics,SingleInputGate
An
InputGate with a specific index.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.runtime.io.network.partition.consumer.InputGate
InputGate.InputWithData<INPUT,DATA> Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AvailabilityProvider.AvailabilityHelperNested classes/interfaces inherited from interface org.apache.flink.runtime.io.PullingAsyncDataInput
PullingAsyncDataInput.EndOfDataStatus -
Field Summary
Fields inherited from class org.apache.flink.runtime.io.network.partition.consumer.InputGate
availabilityHelper, priorityAvailabilityHelperFields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblockConsumption(InputChannelInfo channelInfo) voidcheckpointStarted(CheckpointBarrier barrier) voidcheckpointStopped(long cancelledCheckpointId) voidconvertToPriorityEvent(int channelIndex, int sequenceNumber) abstract intReturns the index of this input gate.intabstract List<InputChannelInfo>Returns the list of channels that have not received EndOfPartitionEvent.abstract voidMethods inherited from class org.apache.flink.runtime.io.network.partition.consumer.InputGate
acknowledgeAllRecordsProcessed, finishReadRecoveredState, getAvailableFuture, getChannel, getChannelInfos, getNext, getNumberOfInputChannels, getPriorityEventAvailableFuture, getStateConsumedFuture, isFinished, pollNext, requestPartitions, resumeConsumption, resumeGateConsumption, sendTaskEvent, setChannelStateWriter, setupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailableMethods inherited from interface org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput
getChannelInfos, getNumberOfInputChannels, resumeConsumptionMethods inherited from interface org.apache.flink.runtime.io.PullingAsyncDataInput
hasReceivedEndOfData
-
Constructor Details
-
IndexedInputGate
public IndexedInputGate()
-
-
Method Details
-
getGateIndex
public abstract int getGateIndex()Returns the index of this input gate. Only supported on -
getUnfinishedChannels
Returns the list of channels that have not received EndOfPartitionEvent. -
checkpointStarted
- Specified by:
checkpointStartedin interfaceCheckpointableInput- Throws:
CheckpointException
-
checkpointStopped
public void checkpointStopped(long cancelledCheckpointId) - Specified by:
checkpointStoppedin interfaceCheckpointableInput
-
getInputGateIndex
public int getInputGateIndex()- Specified by:
getInputGateIndexin interfaceCheckpointableInput
-
blockConsumption
- Specified by:
blockConsumptionin interfaceCheckpointableInput
-
convertToPriorityEvent
- Specified by:
convertToPriorityEventin interfaceCheckpointableInput- Throws:
IOException
-
triggerDebloating
public abstract void triggerDebloating()
-