Class StreamGraphUtils
java.lang.Object
org.apache.flink.streaming.util.graph.StreamGraphUtils
Utility class that contains helper methods to generating
StreamGraph.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidconfigureBufferTimeout(StreamGraph streamGraph, int nodeId, org.apache.flink.api.dag.Transformation<T> transformation, long defaultBufferTimeout) Configure a stream node's buffer timeout according to the given transformation.static voidvalidateTransformationUid(StreamGraph streamGraph, org.apache.flink.api.dag.Transformation<?> transformation) ThrowIllegalStateExceptionif thePhysicalTransformation's uid or hash is not set when auto generate uid is disabled.
-
Constructor Details
-
StreamGraphUtils
public StreamGraphUtils()
-
-
Method Details
-
validateTransformationUid
public static void validateTransformationUid(StreamGraph streamGraph, org.apache.flink.api.dag.Transformation<?> transformation) ThrowIllegalStateExceptionif thePhysicalTransformation's uid or hash is not set when auto generate uid is disabled.- Parameters:
streamGraph- The given graph that the transformation is added totransformation- The transformation needed to validate
-
configureBufferTimeout
public static <T> void configureBufferTimeout(StreamGraph streamGraph, int nodeId, org.apache.flink.api.dag.Transformation<T> transformation, long defaultBufferTimeout) Configure a stream node's buffer timeout according to the given transformation.- Parameters:
streamGraph- The StreamGraph the node belongs tonodeId- The node's idtransformation- A given transformationdefaultBufferTimeout- The default buffer timeout value
-