Skip to main content

Module router

Module router 

Source

StructsΒ§

LegacyPartition
Region
RegionDe πŸ”’
RegionRoute
RegionRouteBuilder
Builder for RegionRoute.
RegionRoutes
Table
TableRoute

EnumsΒ§

LeaderState
The State of the Region Leader. TODO(dennis): It’s better to add more fine-grained statuses such as PENDING etc.
RegionRouteBuilderError
Error type for RegionRouteBuilder
WriteRoutePolicy
The write route policy for the region.

FunctionsΒ§

as_utf8 πŸ”’
as_utf8_vec πŸ”’
convert_to_region_leader_map
Returns the HashMap<[RegionNumber], &Peer>;
find_follower_regions
Returns the region numbers of the follower regions on the target datanode.
find_followers
Returns the followers of the table.
find_leader_regions
Returns the region numbers of the leader regions on the target datanode.
find_leaders
Returns the leader peers of the table.
find_region_leader
from_utf8
from_utf8_vec
operating_leader_regions
Returns the operating leader regions with corresponding DatanodeId.
pb_region_partition_expr
Gets the partition expression of the PbRegion in compatible mode.
region_distribution
Returns the distribution of regions to datanodes.