Class ViewQueryRequest
- java.lang.Object
-
- com.couchbase.client.core.message.AbstractCouchbaseRequest
-
- com.couchbase.client.core.message.view.ViewQueryRequest
-
- All Implemented Interfaces:
CouchbaseMessage
,CouchbaseRequest
,ViewRequest
public class ViewQueryRequest extends AbstractCouchbaseRequest implements ViewRequest
-
-
Constructor Summary
Constructors Constructor Description ViewQueryRequest(String design, String view, boolean development, boolean spatial, String query, String keys, String bucket, String password)
ViewQueryRequest(String design, String view, boolean development, boolean spatial, String query, String keys, String bucket, String username, String password)
ViewQueryRequest(String design, String view, boolean development, String query, String keys, String bucket, String password)
ViewQueryRequest(String design, String view, boolean development, String query, String keys, String bucket, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterSpanSet(io.opentracing.Span span)
Use this method to add custom span values on insert.String
design()
boolean
development()
String
keys()
String
query()
boolean
spatial()
String
view()
-
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
-
-
-
-
Constructor Detail
-
ViewQueryRequest
public ViewQueryRequest(String design, String view, boolean development, String query, String keys, String bucket, String password)
- Parameters:
design
- the name of the design document.view
- the name of the view.development
- true if development mode.query
- the query parameters, except "keys".keys
- the "keys" parameter as a JSON array, null if not needed.bucket
- the bucket name.password
- the bucket password.
-
ViewQueryRequest
public ViewQueryRequest(String design, String view, boolean development, String query, String keys, String bucket, String username, String password)
- Parameters:
design
- the name of the design document.view
- the name of the view.development
- true if development mode.query
- the query parameters, except "keys".keys
- the "keys" parameter as a JSON array, null if not needed.bucket
- the bucket name.username
- the user authorized for bucket access.password
- the user password.
-
ViewQueryRequest
public ViewQueryRequest(String design, String view, boolean development, boolean spatial, String query, String keys, String bucket, String password)
- Parameters:
design
- the name of the design document.view
- the name of the view.development
- true if development mode.spatial
- true if spatial query.query
- the query parameters, except "keys".keys
- the "keys" parameter as a JSON array, null if not needed.bucket
- the bucket name.password
- the bucket password.
-
ViewQueryRequest
public ViewQueryRequest(String design, String view, boolean development, boolean spatial, String query, String keys, String bucket, String username, String password)
- Parameters:
design
- the name of the design document.view
- the name of the view.development
- true if development mode.spatial
- true if spatial query.query
- the query parameters, except "keys".keys
- the "keys" parameter as a JSON array, null if not needed.bucket
- the bucket name.username
- the user authorized for bucket access.password
- the user password.
-
-
Method Detail
-
afterSpanSet
protected void afterSpanSet(io.opentracing.Span span)
Description copied from class:AbstractCouchbaseRequest
Use this method to add custom span values on insert.- Overrides:
afterSpanSet
in classAbstractCouchbaseRequest
-
design
public String design()
-
view
public String view()
-
query
public String query()
-
keys
public String keys()
- Returns:
- the keys parameter as a JSON array String.
-
development
public boolean development()
-
spatial
public boolean spatial()
-
-