Class RangeKeyCondition
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.document.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 Summary
Constructors Constructor Description RangeKeyCondition(String attrName)
A condition for selecting items with a range key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeKeyCondition
beginsWith(String val)
Creates and returns a condition of the range key with a value that begins with the given value.RangeKeyCondition
between(Object low, Object hi)
Creates and returns a condition of the range key that has a value between the given values.RangeKeyCondition
eq(Object val)
Creates and returns a condition of the range key being equal to the given value.RangeKeyCondition
ge(Object val)
Creates and returns a condition of the range key being greater than or equal to the given value.String
getAttrName()
KeyConditions
getKeyCondition()
Object[]
getValues()
RangeKeyCondition
gt(Object val)
Creates and returns a condition of the range key being greater than the given value.RangeKeyCondition
le(Object val)
Creates and returns a condition of the range key being less than or equal to the given value.RangeKeyCondition
lt(Object val)
Creates and returns a condition of the range key being less than the given value.
-
-
-
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()
-
getKeyCondition
public KeyConditions getKeyCondition()
-
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.
-
-