...
If we don't want to introduce an unsafe operation, we might discuss introducing compound keys as an alternative.
CompoundKey<HComposite<H, T>P>
consists of a head and a postfix, and the partition of a compound key is always defined by its 'head' only.
Also, k
and CompoundKeyCompositeKey(k, v)
must have the same partition for each k
.
CompoundKey CompositeKey
usage will be safe both from pov of data locality and IQ, however it is questionable, whether it will be convenient to use it.