Class RawAnalyticsRequest
java.lang.Object
com.couchbase.client.core.message.AbstractCouchbaseRequest
com.couchbase.client.core.message.analytics.GenericAnalyticsRequest
com.couchbase.client.core.message.analytics.RawAnalyticsRequest
- All Implemented Interfaces:
AnalyticsRequest
,CouchbaseMessage
,CouchbaseRequest
,PrelocatedRequest
@Uncommitted @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.- Since:
- 1.4.3
- Author:
- Simon Baslé
-
Field Summary
Fields inherited from class com.couchbase.client.core.message.analytics.GenericAnalyticsRequest
NO_PRIORITY
-
Method Summary
Modifier and Type Method Description static RawAnalyticsRequest
jsonQuery(String jsonQuery, String bucket, String password)
Create aRawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).static RawAnalyticsRequest
jsonQuery(String jsonQuery, String bucket, String username, String password)
Create aRawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).static RawAnalyticsRequest
jsonQuery(String jsonQuery, String bucket, String username, String password, String targetNode)
Create aRawAnalyticsRequest
containing a full Analytics query in Json form (including additional query parameters).Methods inherited from class com.couchbase.client.core.message.analytics.GenericAnalyticsRequest
afterSpanSet, isJsonFormat, jsonQuery, path, priority, query, sendTo, simpleStatement, simpleStatement
Methods inherited from class com.couchbase.client.core.message.AbstractCouchbaseRequest
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
Methods inherited from interface com.couchbase.client.core.message.CouchbaseRequest
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
-
Method Details
-
jsonQuery
Create aRawAnalyticsRequest
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"}
.- Parameters:
jsonQuery
- the Analytics query in json form.bucket
- the bucket on which to perform the query.password
- the password for the target bucket.- Returns:
- a
RawAnalyticsRequest
for this full query.
-
jsonQuery
public static RawAnalyticsRequest jsonQuery(String jsonQuery, String bucket, String username, String password)Create aRawAnalyticsRequest
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"}
.- Parameters:
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.- Returns:
- a
RawAnalyticsRequest
for this full query.
-
jsonQuery
public static RawAnalyticsRequest jsonQuery(String jsonQuery, String bucket, String username, String password, String targetNode)Create aRawAnalyticsRequest
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"}
.- Parameters:
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).- Returns:
- a
RawAnalyticsRequest
for this full query.
-