Class RangeOptions.Limit

  • Enclosing class:
    RangeOptions

    public static class RangeOptions.Limit
    extends java.lang.Object
    Represents a limit argument for a range query in a sorted set.
    The optional LIMIT argument can be used to obtain a sub-range from the matching elements (similar to SELECT LIMIT offset, count in SQL).
    • Constructor Summary

      Constructors 
      Constructor Description
      Limit​(long offset, long count)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCount()
      The number of elements to include in the range.
      long getOffset()
      The offset from the start of the range.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Limit

        public Limit​(long offset,
                     long count)
    • Method Detail

      • getOffset

        public long getOffset()
        The offset from the start of the range.
      • getCount

        public long getCount()
        The number of elements to include in the range. A negative count returns all elements from the offset.