Package | Description |
---|---|
cn.leancloud | |
cn.leancloud.livequery |
Modifier and Type | Class and Description |
---|---|
class |
LCStatusQuery |
Modifier and Type | Method and Description |
---|---|
LCQuery<T> |
LCQuery.addAscendingOrder(String key)
Also sorts the results in ascending order by the given key.
|
LCQuery<T> |
LCQuery.addDescendingOrder(String key)
Also sorts the results in descending order by the given key.
|
protected LCQuery<T> |
LCQuery.addWhereItem(String key,
String op,
Object value) |
static <T extends LCObject> |
LCQuery.and(List<LCQuery<T>> queries)
Constructs a query that is the and of the given queries.
|
LCQuery |
LCQuery.clone()
Clone a new query object, which fully same to this.
|
LCQuery<LCObject> |
LCUser.followeeQuery()
get followee query.
|
static <T extends LCObject> |
LCUser.followeeQuery(String userObjectId,
Class<T> clazz)
get followee query.
|
LCQuery<LCObject> |
LCUser.followerQuery()
get follower query.
|
static <T extends LCObject> |
LCUser.followerQuery(String userObjectId,
Class<T> clazz)
get follower query.
|
LCQuery<LCObject> |
LCUser.friendshipBlockQuery()
get block query.
|
static <T extends LCObject> |
LCUser.friendshipBlockQuery(Class<T> clazz)
get block query.
|
LCQuery<LCFriendship> |
LCUser.friendshipQuery(boolean isFollowerDirection)
get friendship query of current user.
|
LCQuery<LCFriendshipRequest> |
LCUser.friendshipRequestQuery(int status,
boolean includeTargetUser,
boolean requestToMe)
get query for AVFriendshipRequest.
|
LCQuery<? extends LCInstallation> |
LCPush.getPushQuery()
Return push query instance.
|
static LCQuery<LCUser> |
LCUser.getQuery()
Get User Query
|
LCQuery<T> |
LCRelation.getQuery()
Gets a query that can be used to query the objects in this relation.
|
static LCQuery<LCInstallation> |
LCInstallation.getQuery() |
static LCQuery<LCRole> |
LCRole.getQuery() |
LCQuery<T> |
LCRelation.getQuery(Class<T> clazz)
Gets a query that can be used to query the subclass objects in this relation.
|
static <T extends LCObject> |
LCQuery.getQuery(Class<T> clazz)
Create a AVQuery with special sub-class.
|
static <T extends LCObject> |
LCObject.getQuery(Class<T> clazz)
Get query for class.
|
static <T extends LCObject> |
LCQuery.getQuery(String theClassName)
Constructs a query.
|
static <T extends LCUser> |
LCUser.getUserQuery(Class<T> clazz)
Get User Query
|
LCQuery<T> |
LCQuery.include(String key)
Include nested AVObjects for the provided key.
|
LCQuery<T> |
LCQuery.includeACL(boolean includeACL)
set include ACL or not.
|
LCQuery<T> |
LCQuery.limit(int limit) |
static <T extends LCObject> |
LCQuery.or(List<LCQuery<T>> queries)
Constructs a query that is the or of the given queries.
|
LCQuery<T> |
LCQuery.order(String order) |
LCQuery<T> |
LCQuery.orderByAscending(String key)
Sorts the results in ascending order by the given key.
|
LCQuery<T> |
LCQuery.orderByDescending(String key)
Sorts the results in descending order by the given key.
|
static <M extends LCObject> |
LCRelation.reverseQuery(Class<M> theParentClazz,
String relationKey,
LCObject child)
Create a query that can be used to query the parent objects in this relation.
|
static <M extends LCObject> |
LCRelation.reverseQuery(String parentClassName,
String relationKey,
LCObject child)
Create a query that can be used to query the parent objects in this relation.
|
LCQuery<T> |
LCQuery.selectKeys(Collection<String> keys)
Restrict the fields of returned AVObjects to only include the provided keys.
|
LCQuery<T> |
LCQuery.setCachePolicy(LCQuery.CachePolicy cachePolicy)
Change the caching policy of this query.
|
LCQuery<T> |
LCQuery.setClassName(String className)
Set class name
|
LCQuery<T> |
LCQuery.setLimit(int limit)
Controls the maximum number of results that are returned.
|
LCQuery<T> |
LCQuery.setMaxCacheAge(long maxCacheAge)
Sets the maximum age of cached data that will be considered in this query.
|
LCQuery<T> |
LCQuery.setOrder(String order)
Set query order fields.
|
LCQuery<T> |
LCQuery.setPolicy(LCQuery.CachePolicy policy)
Change the caching policy of this query.
|
LCQuery<T> |
LCQuery.setSkip(int skip)
Controls the number of results to skip before returning any results.
|
LCQuery<T> |
LCQuery.skip(int skip) |
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.whereContains(String key,
String substring)
Add a constraint for finding string values that contain a provided string.
|
LCQuery<T> |
LCQuery.whereContainsAll(String key,
Collection<?> values)
Add a constraint to the query that requires a particular key's value match another AVQuery.
|
LCQuery<T> |
LCQuery.whereDoesNotExist(String key)
Add a constraint for finding objects that do not contain a given key.
|
LCQuery<T> |
LCQuery.whereDoesNotMatchKeyInQuery(String key,
String keyInQuery,
LCQuery<?> 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.
|
LCQuery<T> |
LCQuery.whereDoesNotMatchQuery(String key,
LCQuery<?> query)
Add a constraint to the query that requires a particular key's value does not match another
AVQuery.
|
LCQuery<T> |
LCQuery.whereEndsWith(String key,
String suffix)
Add a constraint for finding string values that end with a provided string.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.whereExists(String key)
Add a constraint for finding objects that contain the given key.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.whereMatches(String key,
String regex)
Add a regular expression constraint for finding string values that match the provided regular
expression.
|
LCQuery<T> |
LCQuery.whereMatches(String key,
String regex,
String modifiers)
Add a regular expression constraint for finding string values that match the provided regular
expression.
|
LCQuery<T> |
LCQuery.whereMatchesKeyInQuery(String key,
String keyInQuery,
LCQuery<?> 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
|
LCQuery<T> |
LCQuery.whereMatchesQuery(String key,
LCQuery<?> query)
Add a constraint to the query that requires a particular key's value match another AVQuery.
|
LCQuery<T> |
LCQuery.whereNear(String key,
LCGeoPoint point)
Add a proximity based constraint for finding objects with key point values near the point
given.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.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.
|
LCQuery<T> |
LCQuery.whereSizeEqual(String key,
int size)
添加查询约束条件,查找key类型是数组,该数组的长度匹配提供的数值。
|
LCQuery<T> |
LCQuery.whereStartsWith(String key,
String prefix)
Add a constraint for finding string values that start with a provided string.
|
LCQuery<T> |
LCQuery.whereWithinGeoBox(String key,
LCGeoPoint southwest,
LCGeoPoint northeast)
Add a constraint to the query that requires a particular key's coordinates be contained within
a given rectangular geographic bounding box.
|
LCQuery<T> |
LCQuery.whereWithinKilometers(String key,
LCGeoPoint 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.
|
LCQuery<T> |
LCQuery.whereWithinKilometers(String key,
LCGeoPoint 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.
|
LCQuery<T> |
LCQuery.whereWithinMiles(String key,
LCGeoPoint 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.
|
LCQuery<T> |
LCQuery.whereWithinMiles(String key,
LCGeoPoint 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.
|
LCQuery<T> |
LCQuery.whereWithinRadians(String key,
LCGeoPoint 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.
|
LCQuery<T> |
LCQuery.whereWithinRadians(String key,
LCGeoPoint 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 |
---|---|
LCSaveOption |
LCSaveOption.query(LCQuery query)
Only save object when query matches AVObject instance data
|
static io.reactivex.Observable<JSONObject> |
LCPush.sendDataInBackground(JSONObject data,
LCQuery<? extends LCInstallation> query)
A helper method to concisely send a push to a query.
|
static void |
LCPush.sendDataInBackground(JSONObject data,
LCQuery<? extends LCInstallation> query,
SendCallback callback)
A helper method to concisely send a push to a query.
|
static io.reactivex.Observable<JSONObject> |
LCPush.sendMessageInBackground(String message,
LCQuery<? extends LCInstallation> query)
A helper method to concisely send a push message to a query.
|
static void |
LCPush.sendMessageInBackground(String message,
LCQuery<? extends LCInstallation> query,
SendCallback callback)
A helper method to concisely send a push message to a query.
|
io.reactivex.Observable<LCStatus> |
LCStatus.sendToUsersInBackground(LCQuery query)
send to user with query.
|
io.reactivex.Observable<LCStatus> |
LCStatus.sendToUsersInBackground(String inboxType,
LCQuery query)
send to user with query and inboxType.
|
void |
LCPush.setQuery(LCQuery<? extends LCInstallation> query)
Sets the query for this push for which this push notification will be sent.
|
LCQuery<T> |
LCQuery.whereDoesNotMatchKeyInQuery(String key,
String keyInQuery,
LCQuery<?> 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.
|
LCQuery<T> |
LCQuery.whereDoesNotMatchQuery(String key,
LCQuery<?> query)
Add a constraint to the query that requires a particular key's value does not match another
AVQuery.
|
LCQuery<T> |
LCQuery.whereMatchesKeyInQuery(String key,
String keyInQuery,
LCQuery<?> 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
|
LCQuery<T> |
LCQuery.whereMatchesQuery(String key,
LCQuery<?> 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 LCObject> |
LCQuery.and(List<LCQuery<T>> queries)
Constructs a query that is the and of the given queries.
|
static <T extends LCObject> |
LCQuery.or(List<LCQuery<T>> queries)
Constructs a query that is the or of the given queries.
|
Modifier and Type | Method and Description |
---|---|
static LCLiveQuery |
LCLiveQuery.initWithQuery(LCQuery query)
initialize AVLiveQuery with AVQuery
|
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.