Package | Description |
---|---|
com.couchbase.client | |
com.couchbase.client.protocol.views |
Modifier and Type | Method and Description |
---|---|
HttpFuture<ViewResponse> |
CouchbaseClient.asyncQuery(AbstractView view,
Query query) |
Paginator |
CouchbaseClient.paginatedQuery(View view,
Query query,
int docsPerPage)
A paginated query allows the user to get the results of a large query in
small chunks allowing for better performance.
|
ViewResponse |
CouchbaseClient.query(AbstractView view,
Query query)
Queries a Couchbase view and returns the result.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.copy()
Creates a new query instance and returns it with the properties
bound to the current object.
|
Query |
Query.setBbox(double lowerLeftLong,
double lowerLeftLat,
double upperRightLong,
double upperRightLat)
Sets the params for a spatial bounding box view query.
|
Query |
Query.setDebug(boolean debug)
Enabled debugging on view queries.
|
Query |
Query.setDescending(boolean descending)
Return the documents in descending by key order.
|
Query |
Query.setEndkeyDocID(java.lang.String endkeydocid)
Stop returning records when the specified document ID is reached.
|
Query |
Query.setGroup(boolean group)
Group the results using the reduce function to a group or single row.
|
Query |
Query.setGroupLevel(int grouplevel)
Specify the group level to be used.
|
Query |
Query.setIncludeDocs(boolean include)
If the full documents should be included in the result.
|
Query |
Query.setInclusiveEnd(boolean inclusiveend)
Specifies whether the specified end key should be included in the result.
|
Query |
Query.setKey(ComplexKey key)
Return only documents that match the specified key.
|
Query |
Query.setKey(java.lang.String key)
Return only documents that match the specified key.
|
Query |
Query.setKeys(ComplexKey keys)
Return only documents that match each of keys specified within the given
array.
|
Query |
Query.setKeys(java.lang.String keys)
Return only documents that match each of keys specified within the given
array.
|
Query |
Query.setLimit(int limit)
Limit the number of the returned documents to the specified number.
|
Query |
Query.setOnError(OnError opt)
Sets the response in the event of an error.
|
Query |
Query.setRange(ComplexKey startkey,
ComplexKey endkey)
Returns records in the given key range.
|
Query |
Query.setRange(java.lang.String startkey,
java.lang.String endkey)
Returns records in the given key range.
|
Query |
Query.setRangeEnd(ComplexKey endkey)
Stop returning records when the specified key is reached.
|
Query |
Query.setRangeEnd(java.lang.String endkey)
Stop returning records when the specified key is reached.
|
Query |
Query.setRangeStart(ComplexKey startkey)
Return records with a value equal to or greater than the specified key.
|
Query |
Query.setRangeStart(java.lang.String startkey)
Return records with a value equal to or greater than the specified key.
|
Query |
Query.setReduce(java.lang.Boolean reduce)
Use the reduction function.
|
Query |
Query.setSkip(int docstoskip)
Skip this number of records before starting to return the results.
|
Query |
Query.setStale(Stale stale)
Allow the results from a stale view to be used.
|
Query |
Query.setStartkeyDocID(java.lang.String startkeydocid)
Return records starting with the specified document ID.
|
Constructor and Description |
---|
Paginator(CouchbaseClient client,
View view,
Query query,
int limit)
Create a new Paginator by passing in the needed params.
|
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.