public class StreamGraphHasherV2 extends Object implements StreamGraphHasher
DO NOT MODIFY THIS CLASS
| Constructor and Description |
|---|
StreamGraphHasherV2() |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,byte[]> |
traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)
Returns a map with a hash for each
StreamNode of the StreamGraph. |
public Map<Integer,byte[]> traverseStreamGraphAndGenerateHashes(StreamGraph streamGraph)
StreamNode of the StreamGraph. The hash is used as the JobVertexID in order to
identify nodes across job submissions if they didn't change.
The complete StreamGraph is traversed. The hash is either
computed from the transformation's user-specified id (see
Transformation.getUid()) or generated in a deterministic way.
The generated hash is deterministic with respect to:
traverseStreamGraphAndGenerateHashes in interface StreamGraphHasherStreamNode.id to hash as 16-byte array.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.