Class StreamGraphUtils
- java.lang.Object
-
- org.apache.flink.streaming.util.graph.StreamGraphUtils
-
public final class StreamGraphUtils extends Object
Utility class that contains helper methods to generatingStreamGraph.
-
-
Constructor Summary
Constructors Constructor Description StreamGraphUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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.
-
-
-
Method Detail
-
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
-
-