| Modifier and Type | Method and Description |
|---|---|
AVFriendshipQuery<T> |
addAscendingOrder(String key)
Also sorts the results in ascending order by the given key.
|
AVFriendshipQuery<T> |
addDescendingOrder(String key)
Also sorts the results in descending order by the given key.
|
protected AVFriendshipQuery<T> |
addWhereItem(String key,
String op,
Object value) |
AVFriendship |
get() |
void |
getInBackground(AVFriendshipCallback callback) |
protected void |
getInBackground(String objectId,
boolean sync,
AVFriendshipCallback callback) |
int |
getLimit()
Accessor for the limit.
|
String |
getOrder() |
int |
getSkip()
Accessor for the skip value.
|
AVFriendshipQuery<T> |
include(String key)
Include nested AVObjects for the provided key.
|
AVFriendshipQuery<T> |
limit(int limit) |
AVFriendshipQuery<T> |
order(String order) |
AVFriendshipQuery<T> |
orderByAscending(String key)
Sorts the results in ascending order by the given key.
|
AVFriendshipQuery<T> |
orderByDescending(String key)
Sorts the results in descending order by the given key.
|
AVFriendshipQuery<T> |
selectKeys(Collection<String> keys)
Restrict the fields of returned AVObjects to only include the provided keys.
|
AVFriendshipQuery<T> |
setLimit(int limit)
Controls the maximum number of results that are returned.
|
AVFriendshipQuery<T> |
setOrder(String order)
Set query order fields.
|
AVFriendshipQuery<T> |
setSkip(int skip)
Controls the number of results to skip before returning any results.
|
AVFriendshipQuery<T> |
skip(int skip) |
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
whereContains(String key,
String substring)
Add a constraint for finding string values that contain a provided string.
|
AVFriendshipQuery<T> |
whereContainsAll(String key,
Collection<?> values)
Add a constraint to the query that requires a particular key's value match another
AVFriendshipQuery.
|
AVFriendshipQuery<T> |
whereDoesNotExist(String key)
Add a constraint for finding objects that do not contain a given key.
|
AVFriendshipQuery<T> |
whereEndsWith(String key,
String suffix)
Add a constraint for finding string values that end with a provided string.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
whereExists(String key)
Add a constraint for finding objects that contain the given key.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
whereMatches(String key,
String regex)
Add a regular expression constraint for finding string values that match the provided regular
expression.
|
AVFriendshipQuery<T> |
whereMatches(String key,
String regex,
String modifiers)
Add a regular expression constraint for finding string values that match the provided regular
expression.
|
AVFriendshipQuery<T> |
whereNear(String key,
AVGeoPoint point)
Add a proximity based constraint for finding objects with key point values near the point
given.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
whereSizeEqual(String key,
int size)
添加查询约束条件,查找key类型是数组,该数组的长度匹配提供的数值。
|
AVFriendshipQuery<T> |
whereStartsWith(String key,
String prefix)
Add a constraint for finding string values that start with a provided string.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
AVFriendshipQuery<T> |
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.
|
protected void getInBackground(String objectId, boolean sync, AVFriendshipCallback callback)
public AVFriendship get() throws AVException
AVExceptionpublic void getInBackground(AVFriendshipCallback callback)
callback - callback.done will be called when donepublic int getLimit()
public AVFriendshipQuery<T> setLimit(int limit)
limit - limit for query result countpublic AVFriendshipQuery<T> limit(int limit)
limit - limit for query result countsetLimit(int)public AVFriendshipQuery<T> skip(int skip)
skip - count to skip in query resultsetSkip(int)public int getSkip()
public AVFriendshipQuery<T> setSkip(int skip)
skip - count to skip in query resultpublic String getOrder()
public AVFriendshipQuery<T> setOrder(String order)
order - order for query resultpublic AVFriendshipQuery<T> order(String order)
order - order for query resultsetOrder(String)public AVFriendshipQuery<T> addAscendingOrder(String key)
key - The key to order bypublic AVFriendshipQuery<T> addDescendingOrder(String key)
key - The key to order bypublic AVFriendshipQuery<T> include(String key)
key - The key that should be included.public AVFriendshipQuery<T> selectKeys(Collection<String> keys)
keys - The set of keys to include in the result.public AVFriendshipQuery<T> orderByAscending(String key)
key - The key to order by.public AVFriendshipQuery<T> orderByDescending(String key)
key - The key to order by.public AVFriendshipQuery<T> whereContainedIn(String key, Collection<? extends Object> values)
key - The key to check.values - The values that will match.public AVFriendshipQuery<T> whereContains(String key, String substring)
key - The key that the string to match is stored in.substring - The substring that the value must contain.public AVFriendshipQuery<T> whereSizeEqual(String key, int size)
key - 查询的keysize - 数组的长度public AVFriendshipQuery<T> whereContainsAll(String key, Collection<?> values)
key - The key to check. This key's value must be an array.values - The values that will match.public AVFriendshipQuery<T> whereDoesNotExist(String key)
key - The key that should not existpublic AVFriendshipQuery<T> whereEndsWith(String key, String suffix)
key - The key that the string to match is stored in.suffix - The substring that the value must end with.public AVFriendshipQuery<T> whereEqualTo(String key, Object value)
key - The key to check.value - The value that the AVObject must contain.protected AVFriendshipQuery<T> addWhereItem(String key, String op, Object value)
public AVFriendshipQuery<T> whereExists(String key)
key - The key that should exist.public AVFriendshipQuery<T> whereGreaterThan(String key, Object value)
key - The key to check.value - The value that provides an lower bound.public AVFriendshipQuery<T> whereGreaterThanOrEqualTo(String key, Object value)
key - The key to check.value - The value that provides an lower bound.public AVFriendshipQuery<T> whereLessThan(String key, Object value)
key - The key to check.value - The value that provides an upper bound.public AVFriendshipQuery<T> whereLessThanOrEqualTo(String key, Object value)
key - The key to check.value - The value that provides an lower bound.public AVFriendshipQuery<T> whereMatches(String key, String regex)
key - The key that the string to match is stored in.regex - The regular expression pattern to match.public AVFriendshipQuery<T> whereMatches(String key, String regex, String modifiers)
key - The key that the string to match is stored in.regex - The regular expression pattern to match.modifiers - Any of the following supported PCRE modifiers: i - Case insensitive search m -
Search across multiple lines of inputpublic AVFriendshipQuery<T> whereNear(String key, AVGeoPoint point)
key - The key that the AVGeoPoint is stored in.point - The reference AVGeoPoint that is used.public AVFriendshipQuery<T> whereNotContainedIn(String key, Collection<? extends Object> values)
key - The key to check.values - The values that will not match.public AVFriendshipQuery<T> whereNotEqualTo(String key, Object value)
key - The key to check.value - The value that must not be equalled.public AVFriendshipQuery<T> whereStartsWith(String key, String prefix)
key - The key that the string to match is stored in.prefix - The substring that the value must start with.public AVFriendshipQuery<T> whereWithinGeoBox(String key, AVGeoPoint southwest, AVGeoPoint northeast)
key - The key to be constrained.southwest - The lower-left inclusive corner of the box.northeast - The upper-right inclusive corner of the box.public AVFriendshipQuery<T> whereWithinKilometers(String key, AVGeoPoint point, double maxDistance)
key - The key that the AVGeoPoint is stored in.point - The reference AVGeoPoint that is used.maxDistance - Maximum distance (in kilometers) of results to return.public AVFriendshipQuery<T> whereWithinMiles(String key, AVGeoPoint point, double maxDistance)
key - The key that the AVGeoPoint is stored in.point - point The reference AVGeoPoint that is used.maxDistance - maxDistance Maximum distance (in miles) of results to return.public AVFriendshipQuery<T> whereWithinRadians(String key, AVGeoPoint point, double maxDistance)
key - The key that the AVGeoPoint is stored in.point - The reference AVGeoPoint that is used.maxDistance - Maximum distance (in radians) of results to return.Copyright © 2017. All rights reserved.