Package com.ooyala.pulse
Class ExternalIdGenerator
- java.lang.Object
-
- com.ooyala.pulse.ExternalIdGenerator
-
public final class ExternalIdGenerator extends java.lang.ObjectGenerates a deterministic external ID (dedup key) for ads by building a canonical input string in a fixed field order and computing a SHA-256 hex hash.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringgenerate(AdIdentifiers identifiers)static java.lang.Stringgenerate(AdIdentifiers identifiers, CanonicalPathConfig config)Builds the canonical input string and returns its 32-character SHA-256 hex hash.
-
-
-
Method Detail
-
generate
public static java.lang.String generate(AdIdentifiers identifiers, CanonicalPathConfig config)
Builds the canonical input string and returns its 32-character SHA-256 hex hash.- Parameters:
identifiers- Ad identifiers containing raw attributes.config- Canonical path configuration.- Returns:
- 32-character hex hash string (or "UNKNOWN" if identifiers is null).
-
generate
public static java.lang.String generate(AdIdentifiers identifiers)
-
-