Partition¶
-
class
PartitionService(internal_partition_service, serialization_service)[source]¶ Bases:
objectAllows to retrieve information about the partition count, the partition owner or the partitionId of a key.
-
get_partition_owner(partition_id)[source]¶ Returns the owner of the partition if it’s set,
Noneotherwise.- Parameters
partition_id (int) – The partition id.
- Returns
Owner of the partition
- Return type
uuid.UUID
-