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: ShardFilter

A Filter which produces a shard from the key of an Item using md5 hashing.

name

The name of the component.

Type

ClassVar[FilterName]

name: ClassVar[FilterName] = 'key_hash_shard'