apache_beam.typehints.sharded_key_type module
Type constraint for ShardedKey.
- Can be used like a type-hint, for instance,
‘ShardedKeyType[int]’ ‘ShardedKeyType[Tuple[T]]’
The type constraint is registered to be associated with
apache_beam.coders.coders.ShardedKeyCoder
.
Mostly for internal use.
- class apache_beam.typehints.sharded_key_type.ShardedKeyTypeConstraint(key_type)[source]
Bases:
TypeConstraint
- apache_beam.typehints.sharded_key_type.ShardedKeyType
alias of
ShardedKeyTypeConstraint