Class TaskDeploymentDescriptorFactory
java.lang.Object
org.apache.flink.runtime.deployment.TaskDeploymentDescriptorFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines whether the partition's location must be known at deployment time or can be unknown and, therefore, updated later.static classThis class represents the shuffle descriptor with it index inConsumedPartitionGroup.static classA set of shuffle descriptors that will be serialized together. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.flink.configuration.ConfigOption<Integer>This is an expert option, that we do not want to expose in the documentation. -
Constructor Summary
ConstructorsConstructorDescriptionTaskDeploymentDescriptorFactory(org.apache.flink.types.Either<org.apache.flink.util.SerializedValue<JobInformation>, PermanentBlobKey> jobInformationOrBlobKey, org.apache.flink.api.common.JobID jobID, TaskDeploymentDescriptorFactory.PartitionLocationConstraint partitionDeploymentConstraint, BlobWriter blobWriter, boolean nonFinishedHybridPartitionShouldBeUnknown, int offloadShuffleDescriptorsThreshold) -
Method Summary
Modifier and TypeMethodDescriptioncreateDeploymentDescriptor(Execution execution, AllocationID allocationID, JobManagerTaskRestore taskRestore, Collection<ResultPartitionDeploymentDescriptor> producedPartitions) static ShuffleDescriptorgetConsumedPartitionShuffleDescriptor(IntermediateResultPartition consumedPartition, TaskDeploymentDescriptorFactory.PartitionLocationConstraint partitionDeploymentConstraint, boolean nonFinishedHybridPartitionShouldBeUnknown)
-
Field Details
-
OFFLOAD_SHUFFLE_DESCRIPTORS_THRESHOLD
@Experimental public static final org.apache.flink.configuration.ConfigOption<Integer> OFFLOAD_SHUFFLE_DESCRIPTORS_THRESHOLDThis is an expert option, that we do not want to expose in the documentation. The default value is good enough for almost all cases
-
-
Constructor Details
-
TaskDeploymentDescriptorFactory
public TaskDeploymentDescriptorFactory(org.apache.flink.types.Either<org.apache.flink.util.SerializedValue<JobInformation>, PermanentBlobKey> jobInformationOrBlobKey, org.apache.flink.api.common.JobID jobID, TaskDeploymentDescriptorFactory.PartitionLocationConstraint partitionDeploymentConstraint, BlobWriter blobWriter, boolean nonFinishedHybridPartitionShouldBeUnknown, int offloadShuffleDescriptorsThreshold)
-
-
Method Details
-
getSerializedJobInformation
-
createDeploymentDescriptor
public TaskDeploymentDescriptor createDeploymentDescriptor(Execution execution, AllocationID allocationID, @Nullable JobManagerTaskRestore taskRestore, Collection<ResultPartitionDeploymentDescriptor> producedPartitions) throws IOException, ClusterDatasetCorruptedException -
getConsumedPartitionShuffleDescriptor
public static ShuffleDescriptor getConsumedPartitionShuffleDescriptor(IntermediateResultPartition consumedPartition, TaskDeploymentDescriptorFactory.PartitionLocationConstraint partitionDeploymentConstraint, boolean nonFinishedHybridPartitionShouldBeUnknown)
-