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 Details

    • 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 Details

    • 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 class AbstractCouchbaseRequest
    • 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()