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
public abstract class IndexedInputGate extends InputGate implements CheckpointableInput
AnInputGatewith 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.AvailabilityHelper
-
Nested 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, priorityAvailabilityHelper
-
Fields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE
-
-
Constructor Summary
Constructors Constructor Description IndexedInputGate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidblockConsumption(InputChannelInfo channelInfo)voidcheckpointStarted(CheckpointBarrier barrier)voidcheckpointStopped(long cancelledCheckpointId)voidconvertToPriorityEvent(int channelIndex, int sequenceNumber)abstract ResultPartitionTypegetConsumedPartitionType()Returns the type of this input channel's consumed result partition.abstract intgetGateIndex()Returns the index of this input gate.intgetInputGateIndex()abstract List<InputChannelInfo>getUnfinishedChannels()Returns the list of channels that have not received EndOfPartitionEvent.abstract voidtriggerDebloating()-
Methods 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, setup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailable
-
Methods inherited from interface org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput
getChannelInfos, getNumberOfInputChannels, resumeConsumption
-
Methods inherited from interface org.apache.flink.runtime.io.PullingAsyncDataInput
hasReceivedEndOfData
-
-
-
-
Method Detail
-
getGateIndex
public abstract int getGateIndex()
Returns the index of this input gate. Only supported on
-
getUnfinishedChannels
public abstract List<InputChannelInfo> getUnfinishedChannels()
Returns the list of channels that have not received EndOfPartitionEvent.
-
checkpointStarted
public void checkpointStarted(CheckpointBarrier barrier) throws CheckpointException
- 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
public void blockConsumption(InputChannelInfo channelInfo)
- Specified by:
blockConsumptionin interfaceCheckpointableInput
-
convertToPriorityEvent
public void convertToPriorityEvent(int channelIndex, int sequenceNumber) throws IOException- Specified by:
convertToPriorityEventin interfaceCheckpointableInput- Throws:
IOException
-
getConsumedPartitionType
public abstract ResultPartitionType getConsumedPartitionType()
Returns the type of this input channel's consumed result partition.- Returns:
- consumed result partition type
-
triggerDebloating
public abstract void triggerDebloating()
-
-