zcollection.partitioning.registry.register_codec#

zcollection.partitioning.registry.register_codec(cls, *, codec_id=None)[source]#

Register a partitioning scheme.

Parameters:
  • cls (type[Partitioning]) – The partitioning scheme class.

  • codec_id (str | None) – The partitioning scheme identifier.

Raises:

ValueError – If the codec identifier is already registered.

Return type:

None