public class StreamGraphHasherV2 extends Object implements StreamGraphHasher
DO NOT MODIFY THIS CLASS
构造器和说明 |
---|
StreamGraphHasherV2() |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 StreamGraphHasher
StreamNode.id
to hash as 16-byte array.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.