Interface HashRange

  • All Known Implementing Classes:
    DocRouter.Range

    public interface HashRange
    A range of hash that is stored in a shard
    • Method Detail

      • min

        int min()
        minimum value (inclusive)
      • max

        int max()
        maximum value (inclusive)
      • includes

        default boolean includes​(int hash)
        Check if a given hash falls in this range
      • isSubset

        default boolean isSubset​(HashRange subset)
        Check if another range is a subset of this range