Interface Sharding<T extends Comparable<? super T>>

All Superinterfaces:
PreciseSharding<T>, RangeSharding<T>
All Known Implementing Classes:
CachedSharding, IntervalTimeline, ModCycle

public interface Sharding<T extends Comparable<? super T>> extends PreciseSharding<T>, RangeSharding<T>
Sharding algorithm interface for distributing data across multiple nodes.

Combines both precise sharding (single key) and range sharding (key range) capabilities to determine which node(s) should handle a given ID or ID range.

Sharding

  • Method Details

    • getEffectiveNodes

      Collection<String> getEffectiveNodes()
      Gets all effective node names.
      Returns:
      collection of effective node names