@InterfaceStability.Uncommitted @InterfaceAudience.Public public class RawQueryRequest extends GenericQueryRequest
A QueryRequest
that can also be prelocated
, but expects a response with the uninterpreted JSON payload returned by the query service.
Modifier and Type | Method and Description |
---|---|
static RawQueryRequest |
jsonQuery(String jsonQuery,
String bucket,
String password,
InetAddress targetNode,
String contextId)
Create a
RawQueryRequest containing a full N1QL query in Json form (including additional query parameters like named arguments, etc…). |
static RawQueryRequest |
jsonQuery(String jsonQuery,
String bucket,
String password,
String contextId)
Create a
RawQueryRequest containing a full N1QL query in Json form (including additional query parameters like named arguments, etc…). |
static RawQueryRequest |
jsonQuery(String jsonQuery,
String bucket,
String username,
String password,
InetAddress targetNode,
String contextId)
Create a
RawQueryRequest containing a full N1QL query in Json form (including additional query parameters like named arguments, etc…). |
static RawQueryRequest |
jsonQuery(String jsonQuery,
String bucket,
String username,
String password,
String contextId)
Create a
RawQueryRequest containing a full N1QL query in Json form (including additional query parameters like named arguments, etc…). |
afterSpanSet, isJsonFormat, operationId, query, sendTo, simpleStatement, simpleStatement
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
creationTime
public static RawQueryRequest jsonQuery(String jsonQuery, String bucket, String password, String contextId)
Create a RawQueryRequest
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.contextId
- the context id to store and use for tracing purposes.RawQueryRequest
for this full query.public static RawQueryRequest jsonQuery(String jsonQuery, String bucket, String username, String password, String contextId)
Create a RawQueryRequest
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.username
- the user authorized for bucket access.password
- the password for the user.contextId
- the context id to store and use for tracing purposes.RawQueryRequest
for this full query.public static RawQueryRequest jsonQuery(String jsonQuery, String bucket, String password, InetAddress targetNode, String contextId)
Create a RawQueryRequest
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.targetNode
- the node on which to execute this request (or null to let the core locate and choose one).contextId
- the context id to store and use for tracing purposes.RawQueryRequest
for this full query.public static RawQueryRequest jsonQuery(String jsonQuery, String bucket, String username, String password, InetAddress targetNode, String contextId)
Create a RawQueryRequest
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.username
- the user authorized for bucket access.password
- the password for the user.targetNode
- the node on which to execute this request (or null to let the core locate and choose one).contextId
- the context id to store and use for tracing purposes.RawQueryRequest
for this full query.Copyright © 2018 Couchbase, Inc.. All rights reserved.