Interface StreamGraphHasher
- All Known Implementing Classes:
StreamGraphHasherV2,StreamGraphUserHashHasher
public interface StreamGraphHasher
Interface for different implementations of generating hashes over a stream graph.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangenerateHashesByStreamNodeId(int streamNodeId, StreamGraph streamGraph, Map<Integer, byte[]> hashes) Generates a hash forStreamNodewith the specified stream node id in theStreamGraph.traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph) Returns a map with a hash for eachStreamNodeof theStreamGraph.
-
Method Details
-
traverseStreamGraphAndGenerateHashes
Returns a map with a hash for eachStreamNodeof theStreamGraph. The hash is used as theJobVertexIDin order to identify nodes across job submissions if they didn't change. -
generateHashesByStreamNodeId
boolean generateHashesByStreamNodeId(int streamNodeId, StreamGraph streamGraph, Map<Integer, byte[]> hashes) Generates a hash forStreamNodewith the specified stream node id in theStreamGraph. This hash is stored in the provided map and can be used to uniquely identify theStreamNodeacross job submissions, assuming its configuration remains unchanged.
-