|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.api.StackMobQueryField
public class StackMobQueryField
Represents a part of a query being executed on a specific field. This is meant to be used as part of a chain with StackMobQuery,
StackMobQuery query = new StackMobQuery("user")
.field(new StackMobQueryField("age").isGreaterThan(20).isLessThanOrEqualTo(40))
.field(new StackMobQueryField("friend").isIn(Arrays.asList("joe", "bob", "alice")));
| Constructor Summary | |
|---|---|
StackMobQueryField(String field)
extend the given query with constraints on the given field |
|
| Method Summary | |
|---|---|
String |
getField()
get the field being constrained |
StackMobQuery |
getQuery()
get the actual query to be used or extended further |
StackMobQueryField |
isEqualTo(Boolean val)
add an equality constraint to the field |
StackMobQueryField |
isEqualTo(Integer val)
add an equality constraint to the field |
StackMobQueryField |
isEqualTo(Long val)
add an equality constraint to the field |
StackMobQueryField |
isEqualTo(String val)
add an equality constraint to the field |
StackMobQueryField |
isGreaterThan(Boolean val)
add a greater than constraint to the field |
StackMobQueryField |
isGreaterThan(Integer val)
add a greater than constraint to the field |
StackMobQueryField |
isGreaterThan(Long val)
add a greater than constraint to the field |
StackMobQueryField |
isGreaterThan(String val)
add a greater than constraint to the field |
StackMobQueryField |
isGreaterThanOrEqualTo(Boolean val)
add a greater than or equal to constraint to the field |
StackMobQueryField |
isGreaterThanOrEqualTo(Integer val)
add a greater than or equal to constraint to the field |
StackMobQueryField |
isGreaterThanOrEqualTo(Long val)
add a greater than or equal to constraint to the field |
StackMobQueryField |
isGreaterThanOrEqualTo(String val)
add a greater than or equal to constraint to the field |
StackMobQueryField |
isIn(List<String> values)
Constrain the field to be in a set of values |
StackMobQueryField |
isLessThan(Boolean val)
add a less than constraint to the field |
StackMobQueryField |
isLessThan(Integer val)
add a less than constraint to the field |
StackMobQueryField |
isLessThan(Long val)
add a less than constraint to the field |
StackMobQueryField |
isLessThan(String val)
add a less than constraint to the field |
StackMobQueryField |
isLessThanOrEqualTo(Boolean val)
add a less than or equal to constraint to the field |
StackMobQueryField |
isLessThanOrEqualTo(Integer val)
add a less than or equal to constraint to the field |
StackMobQueryField |
isLessThanOrEqualTo(Long val)
add a less than or equal to constraint to the field |
StackMobQueryField |
isLessThanOrEqualTo(String val)
add a less than or equal to constraint to the field |
StackMobQueryField |
isNear(StackMobGeoPoint point)
add an constraint that this field, which should be a geopoint, is near to another point |
StackMobQueryField |
isNearWithinKm(StackMobGeoPoint point,
Double maxDistanceKm)
add an constraint that this field, which should be a geopoint, is within a certain distance of another point |
StackMobQueryField |
isNearWithinMi(StackMobGeoPoint point,
Double maxDistanceMi)
add an constraint that this field, which should be a geopoint, is within a certain distance of another point |
StackMobQueryField |
isNotEqualTo(Boolean val)
add an inequality constraint to the field |
StackMobQueryField |
isNotEqualTo(Integer val)
add an inequality constraint to the field |
StackMobQueryField |
isNotEqualTo(Long val)
add an inequality constraint to the field |
StackMobQueryField |
isNotEqualTo(String val)
add an inequality constraint to the field |
StackMobQueryField |
isNotNull()
add an not null constraint to the field |
StackMobQueryField |
isNull()
add an null constraint to the field |
StackMobQueryField |
isOrderedBy(StackMobQuery.Ordering ordering)
add an ordering on this field |
StackMobQueryField |
isWithinBox(StackMobGeoPoint lowerLeft,
StackMobGeoPoint upperRight)
add an constraint that this field, which should be a geopoint, is within the box defined by two other points |
StackMobQueryField |
isWithinKm(StackMobGeoPoint point,
Double radiusKm)
add an constraint that this field, which should be a geopoint, is within a certain distance of another point |
StackMobQueryField |
isWithinMi(StackMobGeoPoint point,
Double radiusMi)
add an constraint that this field, which should be a geopoint, is within a certain distance of another point |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackMobQueryField(String field)
field - | Method Detail |
|---|
public StackMobQuery getQuery()
public String getField()
public StackMobQueryField isEqualTo(String val)
val - the value against which to test
public StackMobQueryField isEqualTo(Integer val)
val - the value against which to test
public StackMobQueryField isEqualTo(Long val)
val - the value against which to test
public StackMobQueryField isEqualTo(Boolean val)
val - the value against which to test
public StackMobQueryField isNotEqualTo(String val)
val - the value against which to test
public StackMobQueryField isNotEqualTo(Integer val)
val - the value against which to test
public StackMobQueryField isNotEqualTo(Long val)
val - the value against which to test
public StackMobQueryField isNotEqualTo(Boolean val)
val - the value against which to test
public StackMobQueryField isNull()
public StackMobQueryField isNotNull()
public StackMobQueryField isNear(StackMobGeoPoint point)
point - the value against which to test
public StackMobQueryField isNearWithinMi(StackMobGeoPoint point,
Double maxDistanceMi)
point - the value against which to testmaxDistanceMi - the maximum distance
public StackMobQueryField isNearWithinKm(StackMobGeoPoint point,
Double maxDistanceKm)
point - the value against which to testmaxDistanceKm - the maximum distance
public StackMobQueryField isWithinMi(StackMobGeoPoint point,
Double radiusMi)
point - the value against which to testradiusMi - the maximum distance
public StackMobQueryField isWithinKm(StackMobGeoPoint point,
Double radiusKm)
point - the value against which to testradiusKm - the maximum distance
public StackMobQueryField isWithinBox(StackMobGeoPoint lowerLeft,
StackMobGeoPoint upperRight)
lowerLeft - the lower left corner of the boxupperRight - the upper right corner of the box
public StackMobQueryField isIn(List<String> values)
values - the values against which to test
public StackMobQueryField isLessThan(String val)
val - the value against which to test
public StackMobQueryField isLessThan(Integer val)
val - the value against which to test
public StackMobQueryField isLessThan(Long val)
val - the value against which to test
public StackMobQueryField isLessThan(Boolean val)
val - the value against which to test
public StackMobQueryField isGreaterThan(String val)
val - the value against which to test
public StackMobQueryField isGreaterThan(Integer val)
val - the value against which to test
public StackMobQueryField isGreaterThan(Long val)
val - the value against which to test
public StackMobQueryField isGreaterThan(Boolean val)
val - the value against which to test
public StackMobQueryField isLessThanOrEqualTo(String val)
val - the value against which to test
public StackMobQueryField isLessThanOrEqualTo(Integer val)
val - the value against which to test
public StackMobQueryField isLessThanOrEqualTo(Long val)
val - the value against which to test
public StackMobQueryField isLessThanOrEqualTo(Boolean val)
val - the value against which to test
public StackMobQueryField isGreaterThanOrEqualTo(String val)
val - the value against which to test
public StackMobQueryField isGreaterThanOrEqualTo(Integer val)
val - the value against which to test
public StackMobQueryField isGreaterThanOrEqualTo(Long val)
val - the value against which to test
public StackMobQueryField isGreaterThanOrEqualTo(Boolean val)
val - the value against which to test
public StackMobQueryField isOrderedBy(StackMobQuery.Ordering ordering)
ordering - how results will be ordered using this field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||