@InterfaceStability.Uncommitted @InterfaceAudience.Public public class RawAnalyticsRequest extends GenericAnalyticsRequest
A AnalyticsRequest
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 RawAnalyticsRequest |
jsonQuery(String jsonQuery,
String bucket,
String password)
Create a
RawAnalyticsRequest containing a full Analytics query in Json form (including additional query parameters). |
static RawAnalyticsRequest |
jsonQuery(String jsonQuery,
String bucket,
String password,
InetAddress targetNode)
Create a
RawAnalyticsRequest containing a full Analytics query in Json form (including additional query parameters). |
static RawAnalyticsRequest |
jsonQuery(String jsonQuery,
String bucket,
String username,
String password)
Create a
RawAnalyticsRequest containing a full Analytics query in Json form (including additional query parameters). |
static RawAnalyticsRequest |
jsonQuery(String jsonQuery,
String bucket,
String username,
String password,
InetAddress targetNode)
Create a
RawAnalyticsRequest containing a full Analytics query in Json form (including additional query parameters). |
isJsonFormat, query, sendTo, simpleStatement, simpleStatement
bucket, creationTime, dispatchHostname, dispatchHostname, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, dispatchHostname, dispatchHostname, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, username
creationTime
public static RawAnalyticsRequest jsonQuery(String jsonQuery, String bucket, String password)
Create a RawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).
The simplest form of such a query is a single statement encapsulated in a json query object:
{“statement”:“SELECT * FROM default”}.
jsonQuery
- the Analytics query in json form.bucket
- the bucket on which to perform the query.password
- the password for the target bucket.RawAnalyticsRequest
for this full query.public static RawAnalyticsRequest jsonQuery(String jsonQuery, String bucket, String username, String password)
Create a RawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).
The simplest form of such a query is a single statement encapsulated in a json query object:
{“statement”:“SELECT * FROM default”}.
jsonQuery
- the Analytics 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.RawAnalyticsRequest
for this full query.public static RawAnalyticsRequest jsonQuery(String jsonQuery, String bucket, String password, InetAddress targetNode)
Create a RawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).
The simplest form of such a query is a single statement encapsulated in a json query object:
{“statement”:“SELECT * FROM default”}.
jsonQuery
- the Analytics 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).RawAnalyticsRequest
for this full query.public static RawAnalyticsRequest jsonQuery(String jsonQuery, String bucket, String username, String password, InetAddress targetNode)
Create a RawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).
The simplest form of such a query is a single statement encapsulated in a json query object:
{“statement”:“SELECT * FROM default”}.
jsonQuery
- the Analytics 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 target bucket.targetNode
- the node on which to execute this request (or null to let the core locate and choose one).RawAnalyticsRequest
for this full query.Copyright © 2017 Couchbase, Inc.. All rights reserved.