KeyHashShardFilter (autotransform.filter.key_hash_shard)
The implementation for the KeyHashShardFilter.
- class autotransform.filter.key_hash_shard.KeyHashShardFilter(*, inverted: bool = False, num_shards: int, valid_shard: int = -1)
Bases:
ShardFilterA Filter which produces a shard from the key of an Item using md5 hashing.
- name
The name of the component.
- Type:
ClassVar[FilterName]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[FilterName] = 'key_hash_shard'