Interface StreamGraphHasher

All Known Implementing Classes:
StreamGraphHasherV2, StreamGraphUserHashHasher

public interface StreamGraphHasher
Interface for different implementations of generating hashes over a stream graph.
  • Method Details

    • traverseStreamGraphAndGenerateHashes

      Map<Integer,byte[]> traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)
      Returns a map with a hash for each StreamNode of the StreamGraph. The hash is used as the JobVertexID 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 for StreamNode with the specified stream node id in the StreamGraph. This hash is stored in the provided map and can be used to uniquely identify the StreamNode across job submissions, assuming its configuration remains unchanged.