Class RangeRequest

  • All Implemented Interfaces:
    Serializable

    @Immutable
    public final class RangeRequest
    extends Object
    implements Serializable
    Allows you to restrict a call on the database to specific rows and columns. By default, calls on a table in the key-value store cover all rows and columns in the table. To restrict the rows or columns, call the methods on the RangeRequest class.
    See Also:
    Serialized Form
    • Method Detail

      • getStartInclusive

        @Nonnull
        public byte[] getStartInclusive()
        Start is inclusive. If this range is reversed, then the start will be after the end.

        This array may be empty if the start is unbounded.

      • getEndExclusive

        @Nonnull
        public byte[] getEndExclusive()
        End is exclusive. If this range is reversed, then the end will be before the start.

        This array may be empty if the end doens't have a bound.

      • getColumnNames

        @Nonnull
        public SortedSet<byte[]> getColumnNames()
        An empty set of column names means that all columns are selected.
      • containsColumn

        public boolean containsColumn​(byte[] col)
      • isReverse

        public boolean isReverse()
      • isEmptyRange

        public boolean isEmptyRange()
      • inRange

        public boolean inRange​(byte[] position)
      • withBatchHint

        public RangeRequest withBatchHint​(int hint)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object