Class StreamGraph
java.lang.Object
org.apache.flink.streaming.api.graph.StreamGraph
- All Implemented Interfaces:
Serializable,org.apache.flink.api.dag.Pipeline,ExecutionPlan
@Internal
public class StreamGraph
extends Object
implements org.apache.flink.api.dag.Pipeline, ExecutionPlan
Class representing the streaming topology. It contains all the information necessary to build the
jobgraph for the execution.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionStreamGraph(org.apache.flink.configuration.Configuration jobConfiguration, org.apache.flink.api.common.ExecutionConfig executionConfig, CheckpointConfig checkpointConfig, SavepointRestoreSettings savepointRestoreSettings) -
Method Summary
Modifier and TypeMethodDescription<IN1,IN2, OUT>
voidaddCoOperator(Integer vertexID, String slotSharingGroup, String coLocationGroup, StreamOperatorFactory<OUT> taskOperatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN1> in1TypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<IN2> in2TypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) voidvoidaddEdge(Integer upStreamVertexID, Integer downStreamVertexID, int typeNumber, IntermediateDataSetID intermediateDataSetId) voidaddJar(org.apache.flink.core.fs.Path jar) Adds the path of a JAR file required to run the job on a task manager.voidAdds the given jar files to theJobGraphviaJobGraph.addJar(org.apache.flink.core.fs.Path).<IN,OUT> void addLegacySource(Integer vertexID, String slotSharingGroup, String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) <OUT> voidaddMultipleInputOperator(Integer vertexID, String slotSharingGroup, String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, List<org.apache.flink.api.common.typeinfo.TypeInformation<?>> inTypeInfos, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) protected StreamNodeaddNode(Integer vertexID, String slotSharingGroup, String coLocationGroup, Class<? extends TaskInvokable> vertexClass, StreamOperatorFactory<?> operatorFactory, String operatorName) <IN,OUT> void addOperator(Integer vertexID, String slotSharingGroup, String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) <IN,OUT> void addSink(Integer vertexID, String slotSharingGroup, String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) <IN,OUT> void addSource(Integer vertexID, String slotSharingGroup, String coLocationGroup, SourceOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) voidaddUserArtifact(String name, org.apache.flink.api.common.cache.DistributedCache.DistributedCacheEntry file) voidAdds a blob key corresponding to a user JAR.voidaddVirtualPartitionNode(Integer originalId, Integer virtualId, StreamPartitioner<?> partitioner, StreamExchangeMode exchangeMode) Adds a new virtual node that is used to connect a downstream vertex to an input with a certain partitioning.voidaddVirtualSideOutputNode(Integer originalId, Integer virtualId, org.apache.flink.util.OutputTag outputTag) Adds a new virtual node that is used to connect a downstream vertex to only the outputs with the selected side-outputOutputTag.voidclear()Remove all registered nodes etc.voidvoiddeserializeUserDefinedInstances(ClassLoader userClassLoader, Executor serializationExecutor) getBrokerID(Integer vertexID) org.apache.flink.core.execution.CheckpointingModestatic org.apache.flink.core.execution.CheckpointingModegetCheckpointingMode(CheckpointConfig checkpointConfig) Gets the settings for job checkpointing.Gets the classpath required for the job.org.apache.flink.api.common.ExecutionConfiglongGets the initial client heartbeat timeout.org.apache.flink.configuration.ConfigurationGets the job configuration.Gets the assembledJobGraphwith a randomJobID.getJobGraph(ClassLoader userClassLoader) getJobGraph(ClassLoader userClassLoader, org.apache.flink.api.common.JobID jobID) Gets the assembledJobGraphwith a specifiedJobID.org.apache.flink.api.common.JobIDgetJobID()Gets the unique identifier of the job.List<org.apache.flink.core.execution.JobStatusHook>Gets the type of the job.longgetLoopTimeout(Integer vertexID) intGets the maximum parallelism level for the job.getName()Gets the name of the job.Gets the settings for restoring from a savepoint.org.apache.flink.util.SerializedValue<org.apache.flink.api.common.ExecutionConfig>Gets the serialized execution configuration.byte[]Get serialized watermark declarations, note that it may be null.Determines the slot sharing group of an operation across virtual nodes.getSlotSharingGroupResource(String groupId) getSourceVertex(StreamEdge edge) getStreamEdges(int sourceId) getStreamEdges(int sourceId, int targetId) getStreamEdgesOrThrow(int sourceId, int targetId) Deprecated.getStreamNode(Integer vertexID) getTargetVertex(StreamEdge edge) Gets the user artifacts associated with the job.Returns a list of BLOB keys referring to the JAR files required to run this job.List<org.apache.flink.core.fs.Path>Gets the list of assigned user jar paths.org.apache.flink.configuration.PipelineOptions.VertexDescriptionModeprotected Collection<? extends Integer>booleanbooleanGets whether to put all vertices into the same slot sharing group by default.booleanbooleanbooleanbooleanChecks if the execution plan is dynamic.booleanisEmpty()Checks if the execution plan is empty.booleanbooleanbooleanChecks if partial resource configuration is specified.booleanvoidregisterJobStatusHook(org.apache.flink.core.execution.JobStatusHook hook) Registers the JobStatusHook.voidvoidvoidsetAllVerticesInSameSlotSharingGroupByDefault(boolean allVerticesInSameSlotSharingGroupByDefault) Set whether to put all vertices into the same slot sharing group by default.voidsetAttribute(Integer vertexId, org.apache.flink.api.common.attribute.Attribute attribute) voidsetAutoParallelismEnabled(boolean autoParallelismEnabled) voidsetBufferTimeout(Integer vertexID, long bufferTimeout) voidsetCheckpointStorage(CheckpointStorage checkpointStorage) voidsetClasspath(List<URL> paths) Sets the classpath required to run the job on a task manager.voidsetDynamic(boolean dynamic) voidsetEnableCheckpointsAfterTasksFinish(boolean enableCheckpointsAfterTasksFinish) voidsetGlobalStreamExchangeMode(GlobalStreamExchangeMode globalExchangeMode) voidsetInitialClientHeartbeatTimeout(long initialClientHeartbeatTimeout) voidsetInputFormat(Integer vertexID, org.apache.flink.api.common.io.InputFormat<?, ?> inputFormat) voidsetJobId(org.apache.flink.api.common.JobID jobId) voidsetJobName(String jobName) voidsetJobType(JobType jobType) voidsetLineageGraph(LineageGraph lineageGraph) voidsetManagedMemoryUseCaseWeights(int vertexID, Map<org.apache.flink.core.memory.ManagedMemoryUseCase, Integer> operatorScopeUseCaseWeights, Set<org.apache.flink.core.memory.ManagedMemoryUseCase> slotScopeUseCases) voidsetMaxParallelism(int vertexID, int maxParallelism) voidsetMultipleInputStateKey(Integer vertexID, List<org.apache.flink.api.java.functions.KeySelector<?, ?>> keySelectors, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer) voidsetOneInputStateKey(Integer vertexID, org.apache.flink.api.java.functions.KeySelector<?, ?> keySelector, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer) voidsetOutputFormat(Integer vertexID, org.apache.flink.api.common.io.OutputFormat<?> outputFormat) voidsetParallelism(Integer vertexID, int parallelism) voidsetParallelism(Integer vertexId, int parallelism, boolean parallelismConfigured) voidsetResources(int vertexID, org.apache.flink.api.common.operators.ResourceSpec minResources, org.apache.flink.api.common.operators.ResourceSpec preferredResources) voidsetSavepointRestoreSettings(SavepointRestoreSettings savepointRestoreSettings) Sets the settings for restoring from a savepoint.voidsetSerializers(Integer vertexID, org.apache.flink.api.common.typeutils.TypeSerializer<?> in1, org.apache.flink.api.common.typeutils.TypeSerializer<?> in2, org.apache.flink.api.common.typeutils.TypeSerializer<?> out) voidsetSlotSharingGroupResource(Map<String, ResourceProfile> slotSharingGroupResources) voidsetStateBackend(StateBackend backend) voidsetSupportsConcurrentExecutionAttempts(Integer vertexId, boolean supportsConcurrentExecutionAttempts) voidsetTimerServiceProvider(InternalTimeServiceManager.Provider timerServiceProvider) voidsetTransformationUID(Integer nodeId, String transformationId) voidsetTwoInputStateKey(Integer vertexID, org.apache.flink.api.java.functions.KeySelector<?, ?> keySelector1, org.apache.flink.api.java.functions.KeySelector<?, ?> keySelector2, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer) voidsetUserArtifactBlobKey(String entryName, PermanentBlobKey blobKey) Sets a user artifact blob key for a specified user artifact.voidsetVertexDescriptionMode(org.apache.flink.configuration.PipelineOptions.VertexDescriptionMode mode) voidsetVertexNameIncludeIndexPrefix(boolean includePrefix) toString()voidWrites user artifact entries to the job configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.api.graph.ExecutionPlan
isCheckpointingEnabled
-
Field Details
-
vertexIDtoBrokerID
-
vertexIDtoLoopTimeout
-
-
Constructor Details
-
StreamGraph
public StreamGraph(org.apache.flink.configuration.Configuration jobConfiguration, org.apache.flink.api.common.ExecutionConfig executionConfig, CheckpointConfig checkpointConfig, SavepointRestoreSettings savepointRestoreSettings)
-
-
Method Details
-
clear
public void clear()Remove all registered nodes etc. -
getExecutionConfig
public org.apache.flink.api.common.ExecutionConfig getExecutionConfig() -
getJobConfiguration
public org.apache.flink.configuration.Configuration getJobConfiguration()Description copied from interface:ExecutionPlanGets the job configuration.- Specified by:
getJobConfigurationin interfaceExecutionPlan- Returns:
- the job configuration
-
getCheckpointConfig
-
getCheckpointingMode
public org.apache.flink.core.execution.CheckpointingMode getCheckpointingMode() -
getCheckpointingMode
public static org.apache.flink.core.execution.CheckpointingMode getCheckpointingMode(CheckpointConfig checkpointConfig) -
addJar
public void addJar(org.apache.flink.core.fs.Path jar) Adds the path of a JAR file required to run the job on a task manager.- Parameters:
jar- path of the JAR file required to run the job on a task manager
-
getUserJars
Gets the list of assigned user jar paths.- Specified by:
getUserJarsin interfaceExecutionPlan- Returns:
- The list of assigned user jar paths
-
createJobCheckpointingSettings
public void createJobCheckpointingSettings() -
setSavepointRestoreSettings
Description copied from interface:ExecutionPlanSets the settings for restoring from a savepoint.- Specified by:
setSavepointRestoreSettingsin interfaceExecutionPlan- Parameters:
savepointRestoreSettings- the settings for savepoint restoration
-
getSerializedExecutionConfig
public org.apache.flink.util.SerializedValue<org.apache.flink.api.common.ExecutionConfig> getSerializedExecutionConfig()Description copied from interface:ExecutionPlanGets the serialized execution configuration.- Specified by:
getSerializedExecutionConfigin interfaceExecutionPlan- Returns:
- The serialized execution configuration object
-
getSavepointRestoreSettings
Description copied from interface:ExecutionPlanGets the settings for restoring from a savepoint.- Specified by:
getSavepointRestoreSettingsin interfaceExecutionPlan- Returns:
- the savepoint restore settings
-
getJobName
-
setJobName
-
getLineageGraph
-
setLineageGraph
-
setStateBackend
-
getStateBackend
-
setCheckpointStorage
-
getTimerServiceProvider
-
setTimerServiceProvider
-
getGlobalStreamExchangeMode
-
setGlobalStreamExchangeMode
-
setSlotSharingGroupResource
-
getSlotSharingGroupResource
-
hasFineGrainedResource
public boolean hasFineGrainedResource() -
setAllVerticesInSameSlotSharingGroupByDefault
public void setAllVerticesInSameSlotSharingGroupByDefault(boolean allVerticesInSameSlotSharingGroupByDefault) Set whether to put all vertices into the same slot sharing group by default.- Parameters:
allVerticesInSameSlotSharingGroupByDefault- indicates whether to put all vertices into the same slot sharing group by default.
-
isAllVerticesInSameSlotSharingGroupByDefault
public boolean isAllVerticesInSameSlotSharingGroupByDefault()Gets whether to put all vertices into the same slot sharing group by default.- Returns:
- whether to put all vertices into the same slot sharing group by default.
-
isEnableCheckpointsAfterTasksFinish
public boolean isEnableCheckpointsAfterTasksFinish() -
setEnableCheckpointsAfterTasksFinish
public void setEnableCheckpointsAfterTasksFinish(boolean enableCheckpointsAfterTasksFinish) -
isChainingEnabled
public boolean isChainingEnabled() -
isChainingOfOperatorsWithDifferentMaxParallelismEnabled
public boolean isChainingOfOperatorsWithDifferentMaxParallelismEnabled() -
isIterative
public boolean isIterative() -
addSource
public <IN,OUT> void addSource(Integer vertexID, @Nullable String slotSharingGroup, @Nullable String coLocationGroup, SourceOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) -
addLegacySource
public <IN,OUT> void addLegacySource(Integer vertexID, @Nullable String slotSharingGroup, @Nullable String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) -
addSink
public <IN,OUT> void addSink(Integer vertexID, @Nullable String slotSharingGroup, @Nullable String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) -
addOperator
public <IN,OUT> void addOperator(Integer vertexID, @Nullable String slotSharingGroup, @Nullable String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) -
addCoOperator
public <IN1,IN2, void addCoOperatorOUT> (Integer vertexID, String slotSharingGroup, @Nullable String coLocationGroup, StreamOperatorFactory<OUT> taskOperatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN1> in1TypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<IN2> in2TypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) -
addMultipleInputOperator
public <OUT> void addMultipleInputOperator(Integer vertexID, String slotSharingGroup, @Nullable String coLocationGroup, StreamOperatorFactory<OUT> operatorFactory, List<org.apache.flink.api.common.typeinfo.TypeInformation<?>> inTypeInfos, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInfo, String operatorName) -
addNode
protected StreamNode addNode(Integer vertexID, @Nullable String slotSharingGroup, @Nullable String coLocationGroup, Class<? extends TaskInvokable> vertexClass, @Nullable StreamOperatorFactory<?> operatorFactory, String operatorName) -
addVirtualSideOutputNode
public void addVirtualSideOutputNode(Integer originalId, Integer virtualId, org.apache.flink.util.OutputTag outputTag) Adds a new virtual node that is used to connect a downstream vertex to only the outputs with the selected side-outputOutputTag.- Parameters:
originalId- ID of the node that should be connected to.virtualId- ID of the virtual node.outputTag- The selected side-outputOutputTag.
-
addVirtualPartitionNode
public void addVirtualPartitionNode(Integer originalId, Integer virtualId, StreamPartitioner<?> partitioner, StreamExchangeMode exchangeMode) Adds a new virtual node that is used to connect a downstream vertex to an input with a certain partitioning.When adding an edge from the virtual node to a downstream node the connection will be made to the original node, but with the partitioning given here.
- Parameters:
originalId- ID of the node that should be connected to.virtualId- ID of the virtual node.partitioner- The partitioner
-
getSlotSharingGroup
Determines the slot sharing group of an operation across virtual nodes. -
addEdge
-
addEdge
public void addEdge(Integer upStreamVertexID, Integer downStreamVertexID, int typeNumber, IntermediateDataSetID intermediateDataSetId) -
setParallelism
-
isDynamic
public boolean isDynamic()Description copied from interface:ExecutionPlanChecks if the execution plan is dynamic.- Specified by:
isDynamicin interfaceExecutionPlan- Returns:
- true if the execution plan is dynamic; false otherwise
-
getCheckpointingSettings
Description copied from interface:ExecutionPlanGets the settings for job checkpointing.- Specified by:
getCheckpointingSettingsin interfaceExecutionPlan- Returns:
- the checkpointing settings
-
isEmpty
public boolean isEmpty()Description copied from interface:ExecutionPlanChecks if the execution plan is empty.- Specified by:
isEmptyin interfaceExecutionPlan- Returns:
- true if the plan is empty; false otherwise
-
setParallelism
-
setDynamic
public void setDynamic(boolean dynamic) -
setMaxParallelism
public void setMaxParallelism(int vertexID, int maxParallelism) -
setResources
public void setResources(int vertexID, org.apache.flink.api.common.operators.ResourceSpec minResources, org.apache.flink.api.common.operators.ResourceSpec preferredResources) -
setManagedMemoryUseCaseWeights
-
setOneInputStateKey
public void setOneInputStateKey(Integer vertexID, org.apache.flink.api.java.functions.KeySelector<?, ?> keySelector, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer) -
setTwoInputStateKey
public void setTwoInputStateKey(Integer vertexID, org.apache.flink.api.java.functions.KeySelector<?, ?> keySelector1, org.apache.flink.api.java.functions.KeySelector<?, ?> keySelector2, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer) -
setMultipleInputStateKey
-
setBufferTimeout
-
setSerializers
public void setSerializers(Integer vertexID, org.apache.flink.api.common.typeutils.TypeSerializer<?> in1, org.apache.flink.api.common.typeutils.TypeSerializer<?> in2, org.apache.flink.api.common.typeutils.TypeSerializer<?> out) -
setInputFormat
public void setInputFormat(Integer vertexID, org.apache.flink.api.common.io.InputFormat<?, ?> inputFormat) -
setOutputFormat
public void setOutputFormat(Integer vertexID, org.apache.flink.api.common.io.OutputFormat<?> outputFormat) -
setTransformationUID
-
getStreamNode
-
getVertexIDs
-
getStreamEdges
-
getStreamEdges
-
getStreamEdgesOrThrow
@VisibleForTesting @Deprecated public List<StreamEdge> getStreamEdgesOrThrow(int sourceId, int targetId) Deprecated. -
getSourceIDs
-
getSinkIDs
-
getStreamNodes
-
getBrokerID
-
getLoopTimeout
-
getSourceVertex
-
getTargetVertex
-
getJobGraph
Gets the assembledJobGraphwith a randomJobID. -
getJobGraph
-
getJobGraph
public JobGraph getJobGraph(ClassLoader userClassLoader, @Nullable org.apache.flink.api.common.JobID jobID) Gets the assembledJobGraphwith a specifiedJobID. -
getStreamingPlanAsJSON
-
setJobType
-
getName
Description copied from interface:ExecutionPlanGets the name of the job.- Specified by:
getNamein interfaceExecutionPlan- Returns:
- the job name
-
getJobType
Description copied from interface:ExecutionPlanGets the type of the job.- Specified by:
getJobTypein interfaceExecutionPlan- Returns:
- the job type
-
isAutoParallelismEnabled
public boolean isAutoParallelismEnabled() -
setAutoParallelismEnabled
public void setAutoParallelismEnabled(boolean autoParallelismEnabled) -
getVertexDescriptionMode
public org.apache.flink.configuration.PipelineOptions.VertexDescriptionMode getVertexDescriptionMode() -
setVertexDescriptionMode
public void setVertexDescriptionMode(org.apache.flink.configuration.PipelineOptions.VertexDescriptionMode mode) -
setVertexNameIncludeIndexPrefix
public void setVertexNameIncludeIndexPrefix(boolean includePrefix) -
isVertexNameIncludeIndexPrefix
public boolean isVertexNameIncludeIndexPrefix() -
registerJobStatusHook
public void registerJobStatusHook(org.apache.flink.core.execution.JobStatusHook hook) Registers the JobStatusHook. -
getJobStatusHooks
-
setSupportsConcurrentExecutionAttempts
public void setSupportsConcurrentExecutionAttempts(Integer vertexId, boolean supportsConcurrentExecutionAttempts) -
setAttribute
public void setAttribute(Integer vertexId, org.apache.flink.api.common.attribute.Attribute attribute) -
setJobId
public void setJobId(org.apache.flink.api.common.JobID jobId) -
getJobID
public org.apache.flink.api.common.JobID getJobID()Description copied from interface:ExecutionPlanGets the unique identifier of the job.- Specified by:
getJobIDin interfaceExecutionPlan- Returns:
- the job id
-
setClasspath
Sets the classpath required to run the job on a task manager.- Parameters:
paths- paths of the directories/JAR files required to run the job on a task manager
-
getClasspath
-
addJars
Adds the given jar files to theJobGraphviaJobGraph.addJar(org.apache.flink.core.fs.Path).- Parameters:
jarFilesToAttach- a list of theURLsof the jar files to attach to the jobgraph.- Throws:
RuntimeException- if a jar URL is not valid.
-
getUserJarBlobKeys
Returns a list of BLOB keys referring to the JAR files required to run this job.- Specified by:
getUserJarBlobKeysin interfaceExecutionPlan- Returns:
- list of BLOB keys referring to the JAR files required to run this job
-
getClasspaths
Description copied from interface:ExecutionPlanGets the classpath required for the job.- Specified by:
getClasspathsin interfaceExecutionPlan- Returns:
- a list of classpath URLs
-
addUserArtifact
public void addUserArtifact(String name, org.apache.flink.api.common.cache.DistributedCache.DistributedCacheEntry file) -
getUserArtifacts
public Map<String,org.apache.flink.api.common.cache.DistributedCache.DistributedCacheEntry> getUserArtifacts()Description copied from interface:ExecutionPlanGets the user artifacts associated with the job.- Specified by:
getUserArtifactsin interfaceExecutionPlan- Returns:
- a map of user artifacts
-
addUserJarBlobKey
Description copied from interface:ExecutionPlanAdds a blob key corresponding to a user JAR.- Specified by:
addUserJarBlobKeyin interfaceExecutionPlan- Parameters:
key- the blob key to add
-
setUserArtifactBlobKey
Description copied from interface:ExecutionPlanSets a user artifact blob key for a specified user artifact.- Specified by:
setUserArtifactBlobKeyin interfaceExecutionPlan- Parameters:
entryName- the name of the user artifactblobKey- the blob key corresponding to the user artifact- Throws:
IOException- if an error occurs during the operation
-
writeUserArtifactEntriesToConfiguration
public void writeUserArtifactEntriesToConfiguration()Description copied from interface:ExecutionPlanWrites user artifact entries to the job configuration.- Specified by:
writeUserArtifactEntriesToConfigurationin interfaceExecutionPlan
-
getMaximumParallelism
public int getMaximumParallelism()Description copied from interface:ExecutionPlanGets the maximum parallelism level for the job.- Specified by:
getMaximumParallelismin interfaceExecutionPlan- Returns:
- the maximum parallelism
-
setInitialClientHeartbeatTimeout
public void setInitialClientHeartbeatTimeout(long initialClientHeartbeatTimeout) -
getInitialClientHeartbeatTimeout
public long getInitialClientHeartbeatTimeout()Description copied from interface:ExecutionPlanGets the initial client heartbeat timeout.- Specified by:
getInitialClientHeartbeatTimeoutin interfaceExecutionPlan- Returns:
- the timeout duration in milliseconds
-
isPartialResourceConfigured
public boolean isPartialResourceConfigured()Description copied from interface:ExecutionPlanChecks if partial resource configuration is specified.- Specified by:
isPartialResourceConfiguredin interfaceExecutionPlan- Returns:
- true if partial resource configuration is set; false otherwise
-
serializeUserDefinedInstances
- Throws:
IOException
-
deserializeUserDefinedInstances
public void deserializeUserDefinedInstances(ClassLoader userClassLoader, Executor serializationExecutor) throws Exception - Throws:
Exception
-
getStreamNodesSortedTopologicallyFromSources
public List<StreamNode> getStreamNodesSortedTopologicallyFromSources() throws org.apache.flink.api.common.InvalidProgramException- Throws:
org.apache.flink.api.common.InvalidProgramException
-
serializeAndSaveWatermarkDeclarations
public void serializeAndSaveWatermarkDeclarations() -
getSerializedWatermarkDeclarations
public byte[] getSerializedWatermarkDeclarations()Get serialized watermark declarations, note that it may be null. -
toString
-