Interface KeyRange<K extends java.io.Serializable>

  • Type Parameters:
    K - the type of key to assign for each partition.
    All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    HashRange

    public interface KeyRange<K extends java.io.Serializable>
    extends java.io.Serializable
    Represents the key range of data partitions within a block.
    • Method Detail

      • isAll

        boolean isAll()
        Returns:
        whether this instance represents the entire range or not.
      • rangeBeginInclusive

        K rangeBeginInclusive()
        Returns:
        the beginning of this range (inclusive).
      • rangeEndExclusive

        K rangeEndExclusive()
        Returns:
        the end of this range (exclusive).
      • includes

        boolean includes​(K key)
        Parameters:
        key - the value to check
        Returns:
        true if this key range includes the specified value, false otherwise
      • toString

        java.lang.String toString()
        This method should be overridden for a readable representation of KeyRange. The generic type K should override Object's toString() as well.
        Overrides:
        toString in class java.lang.Object
      • equals

        boolean equals​(java.lang.Object o)
        This method should be overridden for KeyRange comparisons.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        int hashCode()
        This method should be overridden for KeyRange comparisons.
        Overrides:
        hashCode in class java.lang.Object