Tabnine Logo
AVQuery.getOrder
Code IndexAdd Tabnine to your IDE (free)

How to use
getOrder
method
in
com.avos.avoscloud.AVQuery

Best Java code snippets using com.avos.avoscloud.AVQuery.getOrder (Showing top 6 results out of 315)

origin: cn.leancloud.android/avoscloud-sdk

/**
 * 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
 *
 * @param key The key whose value is being checked
 * @param keyInQuery The key in the objects from the sub query to look in
 * @param query The sub query to run
 * @return Returns the query so you can chain this call.
 */
public AVQuery<T> whereMatchesKeyInQuery(String key, String keyInQuery, AVQuery<?> query) {
 Map<String, Object> inner = new HashMap<String, Object>();
 inner.put("className", query.getClassName());
 inner.put("where", query.conditions.compileWhereOperationMap());
 if (query.conditions.getSkip() > 0) inner.put("skip", query.conditions.getSkip());
 if (query.conditions.getLimit() > 0) inner.put("limit", query.conditions.getLimit());
 if (!AVUtils.isBlankContent(query.getOrder())) inner.put("order", query.getOrder());
 Map<String, Object> queryMap = new HashMap<String, Object>();
 queryMap.put("query", inner);
 queryMap.put("key", keyInQuery);
 return addWhereItem(key, "$select", queryMap);
}
origin: cn.leancloud/leancloud-common

/**
 * 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
 *
 * @param key The key whose value is being checked
 * @param keyInQuery The key in the objects from the sub query to look in
 * @param query The sub query to run
 * @return Returns the query so you can chain this call.
 */
public AVQuery<T> whereMatchesKeyInQuery(String key, String keyInQuery, AVQuery<?> query) {
 Map<String, Object> inner = new HashMap<String, Object>();
 inner.put("className", query.getClassName());
 inner.put("where", query.conditions.compileWhereOperationMap());
 if (query.conditions.getSkip() > 0)
  inner.put("skip", query.conditions.getSkip());
 if (query.conditions.getLimit() > 0)
  inner.put("limit", query.conditions.getLimit());
 if (!AVUtils.isBlankContent(query.getOrder()))
  inner.put("order", query.getOrder());
 Map<String, Object> queryMap = new HashMap<String, Object>();
 queryMap.put("query", inner);
 queryMap.put("key", keyInQuery);
 return addWhereItem(key, "$select", queryMap);
}
origin: cn.leancloud.android/avoscloud-sdk

Map<String, Object> myQueryParameters(AVQuery query) {
 Map<String, Object> parameters = new HashMap<String, Object>();
 if (query.getWhere().keySet().size() > 0) {
  parameters.put("where", AVUtils.getParsedMap(query.getWhere()));
 }
 if (query.getLimit() > 0) {
  parameters.put("limit", Integer.toString(query.getLimit()));
 }
 if (query.getSkip() > 0) {
  parameters.put("skip", Integer.toString(query.getSkip()));
 }
 if (query.getOrder() != null && query.getOrder().length() > 0) {
  parameters.put("order", query.getOrder());
 }
 if (query.getInclude() != null && query.getInclude().size() > 0) {
  String value = AVUtils.joinCollection(query.getInclude(), ",");
  parameters.put("include", value);
 }
 if (query.getSelectedKeys() != null && query.getSelectedKeys().size() > 0) {
  String keys = AVUtils.joinCollection(query.getSelectedKeys(), ",");
  parameters.put("keys", keys);
 }
 return parameters;
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Add a constraint to the query that requires a particular key's value match another AVQuery.
 * This only works on keys whose values are AVObjects or lists of AVObjects.
 *
 * @param key The key to check.
 * @param query The query that the value should match
 * @return Returns the query so you can chain this call.
 */
public AVQuery<T> whereMatchesQuery(String key, AVQuery<?> query) {
 Map<String, Object> map =
   AVUtils.createMap("where", query.conditions.compileWhereOperationMap());
 map.put("className", query.className);
 if (query.conditions.getSkip() > 0) map.put("skip", query.conditions.getSkip());
 if (query.conditions.getLimit() > 0) map.put("limit", query.conditions.getLimit());
 if (!AVUtils.isBlankContent(query.getOrder())) map.put("order", query.getOrder());
 addWhereItem(key, "$inQuery", map);
 return this;
}
origin: cn.leancloud/leancloud-common

Map<String, Object> myQueryParameters(AVQuery query) {
 Map<String, Object> parameters = new HashMap<String, Object>();
 if (query.getWhere().keySet().size() > 0) {
  parameters.put("where", AVUtils.getParsedMap(query.getWhere()));
 }
 if (query.getLimit() > 0) {
  parameters.put("limit", Integer.toString(query.getLimit()));
 }
 if (query.getSkip() > 0) {
  parameters.put("skip", Integer.toString(query.getSkip()));
 }
 if (query.getOrder() != null && query.getOrder().length() > 0) {
  parameters.put("order", query.getOrder());
 }
 if (query.getInclude() != null && query.getInclude().size() > 0) {
  String value = AVUtils.joinCollection(query.getInclude(), ",");
  parameters.put("include", value);
 }
 if (query.getSelectedKeys() != null && query.getSelectedKeys().size() > 0) {
  String keys = AVUtils.joinCollection(query.getSelectedKeys(), ",");
  parameters.put("keys", keys);
 }
 return parameters;
}
origin: cn.leancloud/leancloud-common

/**
 * Add a constraint to the query that requires a particular key's value match another AVQuery.
 * This only works on keys whose values are AVObjects or lists of AVObjects.
 *
 * @param key The key to check.
 * @param query The query that the value should match
 * @return Returns the query so you can chain this call.
 */
public AVQuery<T> whereMatchesQuery(String key, AVQuery<?> query) {
 Map<String, Object> map =
   AVUtils.createMap("where", query.conditions.compileWhereOperationMap());
 map.put("className", query.className);
 if (query.conditions.getSkip() > 0)
  map.put("skip", query.conditions.getSkip());
 if (query.conditions.getLimit() > 0)
  map.put("limit", query.conditions.getLimit());
 if (!AVUtils.isBlankContent(query.getOrder()))
  map.put("order", query.getOrder());
 addWhereItem(key, "$inQuery", map);
 return this;
}
com.avos.avoscloudAVQuerygetOrder

Popular methods of AVQuery

  • whereEqualTo
    Add a constraint to the query that requires a particular key's value to be equal to the provided val
  • <init>
  • findInBackground
    Retrieves a list of AVObjects that satisfy this query from the server in a background thread. This i
  • setLimit
    Controls the maximum number of results that are returned. Setting a negative limit denotes retrieval
  • assembleParameters
  • getClassName
    Accessor for the class name.
  • countInBackground
  • doCloudQueryInBackground
    通过cql查询对象
  • find
    Retrieves a list of AVObjects that satisfy this query. Uses the network and/or the cache, depending
  • whereNotContainedIn
    Add a constraint to the query that requires a particular key's value not be contained in the provide
  • addAndItems
  • addOrItems
  • addAndItems,
  • addOrItems,
  • addWhereItem,
  • doCloudQuery,
  • generateQueryPath,
  • get,
  • getFirstInBackground,
  • getInBackground,
  • getInclude,
  • getLimit

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now