Packages

class AsyncScope extends AnyRef

Represents a Couchbase scope resource.

This is an asynchronous version of the Scope interface.

Applications should not create these manually, but instead first open a Cluster and through that a Bucket.

Since

1.0.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncScope
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def analyticsQuery(statement: String, options: AnalyticsOptions = AnalyticsOptions.Default): Future[AnalyticsResult]

    Performs an Analytics query against the cluster.

    Performs an Analytics query against the cluster.

    This is asynchronous. See Cluster.reactive for a reactive streaming version of this API, and Cluster for a blocking version. The reactive version includes backpressure-aware row streaming.

    The reason to use this Scope-based variant over AsyncCluster.analyticsQuery is that it will automatically provide the "query_context" parameter to the query service, allowing queries to be performed on collections without having to fully specify their bucket and scope names in the query statement.

    statement

    the Analytics query to execute

    options

    any query options - see com.couchbase.client.scala.analytics.AnalyticsOptions for documentation

    returns

    a Future containing a Success(AnalyticsResult) (which includes any returned rows) if successful, else a Failure

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val bucketName: String
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def collection(collectionName: String): AsyncCollection

    Opens and returns a Couchbase collection resource, that exists on this scope.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. lazy val eventingFunctions: AsyncScopeEventingFunctionManager

    Allows managing eventing functions on this scope.

    Allows managing eventing functions on this scope.

    For managing eventing functions at the admin scope ("*.*") level, see com.couchbase.client.scala.manager.eventing.AsyncEventingFunctionManager, accessed from AsyncCluster.eventingFunctions.

    Annotations
    @Uncommitted() @SinceCouchbase()
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def name: String

    The name of this scope.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. def query(statement: String, options: QueryOptions = QueryOptions()): Future[QueryResult]

    Performs a N1QL query against the cluster.

    Performs a N1QL query against the cluster.

    This is asynchronous. See Scope.reactive for a reactive streaming version of this API, and Scope for a blocking version. The reactive version includes backpressure-aware row streaming.

    The reason to use this Scope-based variant over AsyncCluster.query is that it will automatically provide the "query_context" parameter to the query service, allowing queries to be performed on collections without having to fully specify their bucket and scope names in the query statement.

    statement

    the N1QL statement to execute

    options

    any query options - see com.couchbase.client.scala.query.QueryOptions for documentation

    returns

    a Future containing a Success(QueryResult) (which includes any returned rows) if successful, else a Failure

  20. def search(indexName: String, request: SearchRequest, options: SearchOptions): Future[SearchResult]

    Performs a Full Text Search (FTS) query.

    Performs a Full Text Search (FTS) query.

    This can be used to perform a traditional FTS query, and/or a vector search.

    Use this to access scoped FTS indexes, and Cluster.search for global indexes.

    indexName

    the name of the search index to use

    request

    the request to send to the FTS service.

    options

    see com.couchbase.client.scala.search.SearchOptions

    returns

    a Try containing a Success(SearchResult) (which includes any returned rows) if successful, else a Failure

    Annotations
    @SinceCouchbase()
  21. def search(indexName: String, request: SearchRequest): Future[SearchResult]

    Performs a Full Text Search (FTS) query.

    Performs a Full Text Search (FTS) query.

    This can be used to perform a traditional FTS query, and/or a vector search.

    Use this to access scoped FTS indexes, and Cluster.search for global indexes.

    indexName

    the name of the search index to use

    request

    the request to send to the FTS service.

    returns

    a Try containing a Success(SearchResult) (which includes any returned rows) if successful, else a Failure

    Annotations
    @SinceCouchbase()
  22. lazy val searchIndexes: AsyncScopeSearchIndexManager

    Allows managing scoped FTS indexes.

    Allows managing scoped FTS indexes.

    Annotations
    @SinceCouchbase()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped