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> void
configureBufferTimeout(StreamGraph streamGraph, int nodeId, Transformation<T> transformation, long defaultBufferTimeout)
Configure a stream node's buffer timeout according to the given transformation.static void
validateTransformationUid(StreamGraph streamGraph, Transformation<?> transformation)
ThrowIllegalStateException
if thePhysicalTransformation
's uid or hash is not set when auto generate uid is disabled.
-
-
-
Method Detail
-
validateTransformationUid
public static void validateTransformationUid(StreamGraph streamGraph, Transformation<?> transformation)
ThrowIllegalStateException
if 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, 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
-
-