Class RangeKeyCondition


  • public class RangeKeyCondition
    extends Object
    A condition for selecting items with a range key. Typical usages:
    new RangeKeyCondition("strAttr").eq("attrValue");

    new RangeKeyCondition("intAttr").gt(42);

    ...

    • Constructor Detail

      • RangeKeyCondition

        public RangeKeyCondition​(String attrName)
        A condition for selecting items with a range key. Typical usages:
        new RangeKeyCondition("strAttr").eq("attrValue");

        new RangeKeyCondition("intAttr").gt(42);

        ...

    • Method Detail

      • getAttrName

        public String getAttrName()
      • getValues

        public Object[] getValues()
      • eq

        public RangeKeyCondition eq​(Object val)
        Creates and returns a condition of the range key being equal to the given value.
      • beginsWith

        public RangeKeyCondition beginsWith​(String val)
        Creates and returns a condition of the range key with a value that begins with the given value.
      • between

        public RangeKeyCondition between​(Object low,
                                         Object hi)
        Creates and returns a condition of the range key that has a value between the given values.
      • ge

        public RangeKeyCondition ge​(Object val)
        Creates and returns a condition of the range key being greater than or equal to the given value.
      • gt

        public RangeKeyCondition gt​(Object val)
        Creates and returns a condition of the range key being greater than the given value.
      • le

        public RangeKeyCondition le​(Object val)
        Creates and returns a condition of the range key being less than or equal to the given value.
      • lt

        public RangeKeyCondition lt​(Object val)
        Creates and returns a condition of the range key being less than the given value.