Expand description
Injective composite-key encoding.
encode_composite_key joins text fields into one string such that distinct
field tuples can never collide. It is the building block for a stable identity
key over an equality index, where a naive separator-join (a:b:c) is unsound:
the fields themselves may contain the separator, so ["a", "b:c"] and
["a:b", "c"] would collide.
Functionsยง
- encode_
composite_ key - Encodes
fieldsinto one string that is injective in the field tuple: distinct inputs always produce distinct outputs and equal inputs produce equal outputs, whatever the fields contain.