| Package | Description |
|---|---|
| com.avos.avoscloud |
| Modifier and Type | Class and Description |
|---|---|
class |
AVStatusQuery |
| Modifier and Type | Method and Description |
|---|---|
AVQuery<T> |
AVQuery.addAscendingOrder(String key)
Also sorts the results in ascending order by the given key.
|
AVQuery<T> |
AVQuery.addDescendingOrder(String key)
Also sorts the results in descending order by the given key.
|
protected AVQuery<T> |
AVQuery.addWhereItem(String key,
String op,
Object value) |
static <T extends AVObject> |
AVQuery.and(List<AVQuery<T>> queries) |
<T extends AVUser> |
AVUser.followeeQuery(Class<T> clazz)
创建followee查询。 创建followee查询后,您可以使用whereEqualTo("followee", userFollowee)查询特定的followee。
您也可以使用skip和limit支持分页操作。
|
static <T extends AVUser> |
AVUser.followeeQuery(String userObjectId,
Class<T> clazz)
创建followee查询。请确保传入的userObjectId不为空,否则会抛出IllegalArgumentException。
创建followee查询后,您可以使用whereEqualTo("followee", userFollowee)查询特定的followee。 您也可以使用skip和limit支持分页操作。
|
<T extends AVUser> |
AVUser.followerQuery(Class<T> clazz)
创建follower查询。创建follower查询后,您可以使用whereEqualTo("follower", userFollower)查询特定的follower。
您也可以使用skip和limit支持分页操作。
|
static <T extends AVUser> |
AVUser.followerQuery(String userObjectId,
Class<T> clazz)
创建follower查询。请确保传入的userObjectId不为空,否则会抛出IllegalArgumentException。
创建follower查询后,您可以使用whereEqualTo("follower", userFollower)查询特定的follower。 您也可以使用skip和limit支持分页操作。
|
static AVQuery<AVRole> |
AVRole.getQuery()
Gets a AVQuery over the Role collection.
|
AVQuery<T> |
AVRelation.getQuery()
Gets a query that can be used to query the objects in this relation.
|
static AVQuery<AVUser> |
AVUser.getQuery()
Constructs a query for AVUsers.
|
AVQuery<T> |
AVRelation.getQuery(Class<T> clazz)
Gets a query that can be used to query the subclass objects in this relation.
|
static <T extends AVObject> |
AVObject.getQuery(Class<T> clazz)
Create a AVQuery with special sub-class.
|
static <T extends AVObject> |
AVQuery.getQuery(Class<T> clazz)
Create a AVQuery with special sub-class.
|
static <T extends AVObject> |
AVQuery.getQuery(String theClassName)
Constructs a query.
|
static AVQuery<AVUser> |
AVQuery.getUserQuery()
Deprecated.
|
static <T extends AVUser> |
AVUser.getUserQuery(Class<T> clazz)
Constructs a query for AVUsers subclasses.
|
AVQuery<T> |
AVQuery.include(String key)
Include nested AVObjects for the provided key.
|
AVQuery<T> |
AVQuery.limit(int limit) |
static <T extends AVObject> |
AVQuery.or(List<AVQuery<T>> queries)
Constructs a query that is the or of the given queries.
|
AVQuery<T> |
AVQuery.order(String order) |
AVQuery<T> |
AVQuery.orderByAscending(String key)
Sorts the results in ascending order by the given key.
|
AVQuery<T> |
AVQuery.orderByDescending(String key)
Sorts the results in descending order by the given key.
|
static <M extends AVObject> |
AVRelation.reverseQuery(Class<M> theParentClazz,
String relationKey,
AVObject child)
Create a query that can be used to query the parent objects in this relation.
|
static <M extends AVObject> |
AVRelation.reverseQuery(String parentClassName,
String relationKey,
AVObject child)
Create a query that can be used to query the parent objects in this relation.
|
AVQuery<T> |
AVQuery.selectKeys(Collection<String> keys)
Restrict the fields of returned AVObjects to only include the provided keys.
|
AVQuery<T> |
AVQuery.setCachePolicy(AVQuery.CachePolicy cachePolicy)
Change the caching policy of this query.
|
AVQuery<T> |
AVQuery.setClassName(String className) |
AVQuery<T> |
AVQuery.setLimit(int limit)
Controls the maximum number of results that are returned.
|
AVQuery<T> |
AVQuery.setMaxCacheAge(long maxCacheAge)
Sets the maximum age of cached data that will be considered in this query.
|
AVQuery<T> |
AVQuery.setOrder(String order)
Set query order fields.
|
AVQuery<T> |
AVQuery.setPolicy(AVQuery.CachePolicy policy)
Deprecated.
|
AVQuery<T> |
AVQuery.setSkip(int skip)
Controls the number of results to skip before returning any results.
|
AVQuery<T> |
AVQuery.setTrace(boolean trace)
Turn on performance tracing of finds.
|
AVQuery<T> |
AVQuery.skip(int skip) |
AVQuery<T> |
AVQuery.whereContainedIn(String key,
Collection<? extends Object> values)
Add a constraint to the query that requires a particular key's value to be contained in the
provided list of values.
|
AVQuery<T> |
AVQuery.whereContains(String key,
String substring)
Add a constraint for finding string values that contain a provided string.
|
AVQuery<T> |
AVQuery.whereContainsAll(String key,
Collection<?> values)
Add a constraint to the query that requires a particular key's value match another AVQuery.
|
AVQuery<T> |
AVQuery.whereDoesNotExist(String key)
Add a constraint for finding objects that do not contain a given key.
|
AVQuery<T> |
AVQuery.whereDoesNotMatchKeyInQuery(String key,
String keyInQuery,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value does not match any value
for a key in the results of another AVQuery.
|
AVQuery<T> |
AVQuery.whereDoesNotMatchQuery(String key,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value does not match another
AVQuery.
|
AVQuery<T> |
AVQuery.whereEndsWith(String key,
String suffix)
Add a constraint for finding string values that end with a provided string.
|
AVQuery<T> |
AVQuery.whereEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key's value to be equal to the
provided value.
|
AVQuery<T> |
AVQuery.whereExists(String key)
Add a constraint for finding objects that contain the given key.
|
AVQuery<T> |
AVQuery.whereGreaterThan(String key,
Object value)
Add a constraint to the query that requires a particular key's value to be greater than the
provided value.
|
AVQuery<T> |
AVQuery.whereGreaterThanOrEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key's value to be greater or equal to
than the provided value.
|
AVQuery<T> |
AVQuery.whereLessThan(String key,
Object value)
Add a constraint to the query that requires a particular key's value to be less than the
provided value.
|
AVQuery<T> |
AVQuery.whereLessThanOrEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key's value to be less or equal to
than the provided value.
|
AVQuery<T> |
AVQuery.whereMatches(String key,
String regex)
Add a regular expression constraint for finding string values that match the provided regular
expression.
|
AVQuery<T> |
AVQuery.whereMatches(String key,
String regex,
String modifiers)
Add a regular expression constraint for finding string values that match the provided regular
expression.
|
AVQuery<T> |
AVQuery.whereMatchesKeyInQuery(String key,
String keyInQuery,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value matches a value for a key
in the results of another AVQuery
|
AVQuery<T> |
AVQuery.whereMatchesQuery(String key,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value match another AVQuery.
|
AVQuery<T> |
AVQuery.whereNear(String key,
AVGeoPoint point)
Add a proximity based constraint for finding objects with key point values near the point
given.
|
AVQuery<T> |
AVQuery.whereNotContainedIn(String key,
Collection<? extends Object> values)
Add a constraint to the query that requires a particular key's value not be contained in the
provided list of values.
|
AVQuery<T> |
AVQuery.whereNotEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key's value to be not equal to the
provided value.
|
AVQuery<T> |
AVQuery.whereSizeEqual(String key,
int size)
添加查询约束条件,查找key类型是数组,该数组的长度匹配提供的数值。
|
AVQuery<T> |
AVQuery.whereStartsWith(String key,
String prefix)
Add a constraint for finding string values that start with a provided string.
|
AVQuery<T> |
AVQuery.whereWithinGeoBox(String key,
AVGeoPoint southwest,
AVGeoPoint northeast)
Add a constraint to the query that requires a particular key's coordinates be contained within
a given rectangular geographic bounding box.
|
AVQuery<T> |
AVQuery.whereWithinKilometers(String key,
AVGeoPoint point,
double maxDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
AVQuery<T> |
AVQuery.whereWithinKilometers(String key,
AVGeoPoint point,
double maxDistance,
double minDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the given ring area
Radius of earth used is 6371.0 kilometers.
|
AVQuery<T> |
AVQuery.whereWithinMiles(String key,
AVGeoPoint point,
double maxDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
AVQuery<T> |
AVQuery.whereWithinMiles(String key,
AVGeoPoint point,
double maxDistance,
double minDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the given ring.
|
AVQuery<T> |
AVQuery.whereWithinRadians(String key,
AVGeoPoint point,
double maxDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
AVQuery<T> |
AVQuery.whereWithinRadians(String key,
AVGeoPoint point,
double maxDistance,
double minDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
| Modifier and Type | Method and Description |
|---|---|
AVSaveOption |
AVSaveOption.query(AVQuery query) |
AVDeleteOption |
AVDeleteOption.query(AVQuery query)
Only delete object when query matches AVObject instance data
|
void |
AVStatus.setQuery(AVQuery query) |
AVQuery<T> |
AVQuery.whereDoesNotMatchKeyInQuery(String key,
String keyInQuery,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value does not match any value
for a key in the results of another AVQuery.
|
AVQuery<T> |
AVQuery.whereDoesNotMatchQuery(String key,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value does not match another
AVQuery.
|
AVQuery<T> |
AVQuery.whereMatchesKeyInQuery(String key,
String keyInQuery,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value matches a value for a key
in the results of another AVQuery
|
AVQuery<T> |
AVQuery.whereMatchesQuery(String key,
AVQuery<?> query)
Add a constraint to the query that requires a particular key's value match another AVQuery.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends AVObject> |
AVQuery.and(List<AVQuery<T>> queries) |
static <T extends AVObject> |
AVQuery.or(List<AVQuery<T>> queries)
Constructs a query that is the or of the given queries.
|
Copyright © 2017. All rights reserved.