Interface StreamGraphHasher
-
- All Known Implementing Classes:
StreamGraphHasherV2,StreamGraphUserHashHasher
public interface StreamGraphHasherInterface for different implementations of generating hashes over a stream graph.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangenerateHashesByStreamNodeId(int streamNodeId, StreamGraph streamGraph, Map<Integer,byte[]> hashes)Generates a hash forStreamNodewith the specified stream node id in theStreamGraph.Map<Integer,byte[]>traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)Returns a map with a hash for eachStreamNodeof theStreamGraph.
-
-
-
Method Detail
-
traverseStreamGraphAndGenerateHashes
Map<Integer,byte[]> traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)
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.
-
-