Package org.apache.flink.runtime.shuffle
Class NettyShuffleDescriptor
java.lang.Object
org.apache.flink.runtime.shuffle.NettyShuffleDescriptor
- All Implemented Interfaces:
Serializable,ShuffleDescriptor
Default implementation of
ShuffleDescriptor for NettyShuffleMaster.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLocal partition connection information.static classRemote partition connection information with index to query partition.static interfaceInformation for connection to partition producer for shuffle exchange. -
Constructor Summary
ConstructorsConstructorDescriptionNettyShuffleDescriptor(ResourceID producerLocation, NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo, ResultPartitionID resultPartitionID) NettyShuffleDescriptor(ResourceID producerLocation, NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo, ResultPartitionID resultPartitionID, List<TierShuffleDescriptor> tierShuffleDescriptors) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLocalTo(ResourceID consumerLocation) Returns the location of the producing task executor if the partition occupies local resources there.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.shuffle.ShuffleDescriptor
isUnknown
-
Constructor Details
-
NettyShuffleDescriptor
public NettyShuffleDescriptor(ResourceID producerLocation, NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo, ResultPartitionID resultPartitionID) -
NettyShuffleDescriptor
public NettyShuffleDescriptor(ResourceID producerLocation, NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo, ResultPartitionID resultPartitionID, @Nullable List<TierShuffleDescriptor> tierShuffleDescriptors)
-
-
Method Details
-
getConnectionId
-
getResultPartitionID
- Specified by:
getResultPartitionIDin interfaceShuffleDescriptor
-
storesLocalResourcesOn
Description copied from interface:ShuffleDescriptorReturns the location of the producing task executor if the partition occupies local resources there.Indicates that this partition occupies local resources in the producing task executor. Such partition requires that the task executor is running and being connected to be able to consume the produced data. This is mostly relevant for the batch jobs and blocking result partitions which can outlive the producer lifetime and be released externally.
ShuffleEnvironment.releasePartitionsLocally(Collection)can be used to release such kind of partitions locally.- Specified by:
storesLocalResourcesOnin interfaceShuffleDescriptor- Returns:
- the resource id of the producing task executor if the partition occupies local resources there
-
isLocalTo
-
getTierShuffleDescriptors
-