public class NettyShuffleDescriptor extends Object implements ShuffleDescriptor
ShuffleDescriptor
for NettyShuffleMaster
.Modifier and Type | Class and Description |
---|---|
static class |
NettyShuffleDescriptor.LocalExecutionPartitionConnectionInfo
Local partition connection information.
|
static class |
NettyShuffleDescriptor.NetworkPartitionConnectionInfo
Remote partition connection information with index to query partition.
|
static interface |
NettyShuffleDescriptor.PartitionConnectionInfo
Information for connection to partition producer for shuffle exchange.
|
Constructor and Description |
---|
NettyShuffleDescriptor(ResourceID producerLocation,
NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo,
ResultPartitionID resultPartitionID) |
NettyShuffleDescriptor(ResourceID producerLocation,
NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo,
ResultPartitionID resultPartitionID,
List<TierShuffleDescriptor> tierShuffleDescriptors) |
Modifier and Type | Method and Description |
---|---|
ConnectionID |
getConnectionId() |
ResultPartitionID |
getResultPartitionID() |
List<TierShuffleDescriptor> |
getTierShuffleDescriptors() |
boolean |
isLocalTo(ResourceID consumerLocation) |
Optional<ResourceID> |
storesLocalResourcesOn()
Returns the location of the producing task executor if the partition occupies local resources
there.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isUnknown
public NettyShuffleDescriptor(ResourceID producerLocation, NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo, ResultPartitionID resultPartitionID)
public NettyShuffleDescriptor(ResourceID producerLocation, NettyShuffleDescriptor.PartitionConnectionInfo partitionConnectionInfo, ResultPartitionID resultPartitionID, @Nullable List<TierShuffleDescriptor> tierShuffleDescriptors)
public ConnectionID getConnectionId()
public ResultPartitionID getResultPartitionID()
getResultPartitionID
in interface ShuffleDescriptor
public Optional<ResourceID> storesLocalResourcesOn()
ShuffleDescriptor
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.
storesLocalResourcesOn
in interface ShuffleDescriptor
public boolean isLocalTo(ResourceID consumerLocation)
@Nullable public List<TierShuffleDescriptor> getTierShuffleDescriptors()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.