Interface StreamGraphHasher
-
- All Known Implementing Classes:
StreamGraphHasherV2
,StreamGraphUserHashHasher
public interface StreamGraphHasher
Interface for different implementations of generating hashes over a stream graph.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
generateHashesByStreamNodeId(int streamNodeId, StreamGraph streamGraph, Map<Integer,byte[]> hashes)
Generates a hash forStreamNode
with the specified stream node id in theStreamGraph
.Map<Integer,byte[]>
traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)
Returns a map with a hash for eachStreamNode
of theStreamGraph
.
-
-
-
Method Detail
-
traverseStreamGraphAndGenerateHashes
Map<Integer,byte[]> traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)
Returns a map with a hash for eachStreamNode
of theStreamGraph
. The hash is used as theJobVertexID
in 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 forStreamNode
with the specified stream node id in theStreamGraph
. This hash is stored in the provided map and can be used to uniquely identify theStreamNode
across job submissions, assuming its configuration remains unchanged.
-
-