public class GenericQueryRequest extends AbstractCouchbaseRequest implements QueryRequest
For the lack of a better name, a query request against a query server.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isJsonFormat() |
static GenericQueryRequest |
jsonQuery(String jsonQuery,
String bucket,
String password)
Create a
GenericQueryRequest and mark it as containing a full N1QL query in Json form (including additional query parameters like named arguments, etc…). |
String |
query() |
static GenericQueryRequest |
simpleStatement(String statement,
String bucket,
String password)
Creates a
GenericQueryRequest and mark it as containing a single simple statement (e.g. |
bucket, creationTime, incrementRetryCount, observable, password, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbucket, incrementRetryCount, observable, passwordcreationTimepublic String query()
public boolean isJsonFormat()
public static GenericQueryRequest simpleStatement(String statement, String bucket, String password)
Creates a GenericQueryRequest and mark it as containing a single simple statement (e.g. “SELECT * FROM default”).
statement - the N1QL query statement to perform.bucket - the bucket on which to search.password - the password for the target bucket.GenericQueryRequest for this simple statement.public static GenericQueryRequest jsonQuery(String jsonQuery, String bucket, String password)
Create a GenericQueryRequest and mark it as containing a full N1QL query in Json form (including additional query parameters like named arguments, etc…).
The simplest form of such a query is a single statement encapsulated in a json query object:
{“statement”:“SELECT * FROM default”}.jsonQuery - the N1QL query in json form.bucket - the bucket on which to perform the query.password - the password for the target bucket.GenericQueryRequest for this full query.Copyright © 2016 Couchbase, Inc.. All rights reserved.