public class Query
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Query.AllDocsMode
Changes the behavior of a query created by queryAllDocuments.
|
static class |
Query.IndexUpdateMode
Determines whether or when the view index is updated.
|
static interface |
Query.QueryCompleteListener
A delegate that can be called to signal the completion of a Query.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
Query.AllDocsMode |
getAllDocsMode() |
Database |
getDatabase()
The database this query is associated with
|
java.lang.Object |
getEndKey() |
java.lang.String |
getEndKeyDocId() |
int |
getGroupLevel() |
Query.IndexUpdateMode |
getIndexUpdateMode() |
java.util.List<java.lang.Object> |
getKeys() |
int |
getLimit() |
Predicate<QueryRow> |
getPostFilter() |
int |
getPrefixMatchLevel() |
int |
getSkip() |
java.lang.Object |
getStartKey() |
java.lang.String |
getStartKeyDocId() |
View |
getView() |
boolean |
isDescending() |
boolean |
isInclusiveEnd() |
boolean |
isInclusiveStart() |
boolean |
isMapOnly() |
QueryEnumerator |
run()
Sends the query to the server and returns an enumerator over the result rows (Synchronous).
|
java.util.concurrent.Future |
runAsync(Query.QueryCompleteListener onComplete)
Starts an asynchronous query.
|
void |
setAllDocsMode(Query.AllDocsMode allDocsMode) |
void |
setDescending(boolean descending) |
void |
setEndKey(java.lang.Object endKey) |
void |
setEndKeyDocId(java.lang.String endKeyDocId) |
void |
setGroupLevel(int groupLevel) |
void |
setIncludeDeleted(boolean includeDeletedParam) |
void |
setInclusiveEnd(boolean inclusiveEnd) |
void |
setInclusiveStart(boolean inclusiveStart) |
void |
setIndexUpdateMode(Query.IndexUpdateMode indexUpdateMode) |
void |
setKeys(java.util.List<java.lang.Object> keys) |
void |
setLimit(int limit) |
void |
setMapOnly(boolean mapOnly) |
void |
setPostFilter(Predicate<QueryRow> pf) |
void |
setPrefetch(boolean prefetch) |
void |
setPrefixMatchLevel(int prefixMatchLevel) |
void |
setSkip(int skip) |
void |
setStartKey(java.lang.Object startKey) |
void |
setStartKeyDocId(java.lang.String startKeyDocId) |
boolean |
shouldIncludeDeleted() |
boolean |
shouldPrefetch() |
LiveQuery |
toLiveQuery()
Returns a live query with the same parameters.
|
public Database getDatabase()
public int getLimit()
public void setLimit(int limit)
public int getSkip()
public void setSkip(int skip)
public boolean isDescending()
public void setDescending(boolean descending)
public java.lang.Object getStartKey()
public void setStartKey(java.lang.Object startKey)
public java.lang.Object getEndKey()
public void setEndKey(java.lang.Object endKey)
public java.lang.String getStartKeyDocId()
public void setStartKeyDocId(java.lang.String startKeyDocId)
public java.lang.String getEndKeyDocId()
public void setEndKeyDocId(java.lang.String endKeyDocId)
public Query.IndexUpdateMode getIndexUpdateMode()
public void setIndexUpdateMode(Query.IndexUpdateMode indexUpdateMode)
public Query.AllDocsMode getAllDocsMode()
public void setAllDocsMode(Query.AllDocsMode allDocsMode)
public java.util.List<java.lang.Object> getKeys()
public void setKeys(java.util.List<java.lang.Object> keys)
public boolean isMapOnly()
public void setMapOnly(boolean mapOnly)
public int getGroupLevel()
public void setGroupLevel(int groupLevel)
public int getPrefixMatchLevel()
public void setPrefixMatchLevel(int prefixMatchLevel)
public boolean isInclusiveStart()
public void setInclusiveStart(boolean inclusiveStart)
public boolean isInclusiveEnd()
public void setInclusiveEnd(boolean inclusiveEnd)
public boolean shouldPrefetch()
public void setPrefetch(boolean prefetch)
public boolean shouldIncludeDeleted()
public void setIncludeDeleted(boolean includeDeletedParam)
public QueryEnumerator run() throws CouchbaseLiteException
CouchbaseLiteExceptionpublic LiveQuery toLiveQuery()
public java.util.concurrent.Future runAsync(Query.QueryCompleteListener onComplete)
public View getView()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable