Package me.ahoo.cosid.sharding
Interface PreciseSharding<T extends Comparable<?>>
- Type Parameters:
T- the type of comparable sharding value
- All Known Subinterfaces:
Sharding<T>
- All Known Implementing Classes:
CachedSharding,IntervalTimeline,ModCycle
public interface PreciseSharding<T extends Comparable<?>>
Single-value sharding algorithm interface.
-
Method Summary
-
Method Details
-
sharding
Gets the node for a single sharding value.- Parameters:
shardingValue- the sharding value- Returns:
- the node name
-