Packages

object CouchbaseSource

Source
CouchbaseSource.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CouchbaseSource
  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.analyticsOptions())(implicit scope: AsyncScope): Source[AnalyticsResult, NotUsed]

    Performs an Analytics query , QueryResult contains List<Row>

    Performs an Analytics query , QueryResult contains List<Row>

    val rows: List[JsonObject] = QueryResult.rowsAsObject, every Row is a json with CollectionName key

       {
         "collectionName": Document
       }
    

    Warning: couchbase-community not support analyticsQuery, we not test this API https://www.couchbase.com/products/editions/server/

    statement

    Analytics query sql

  5. def analyticsQueryJson(statement: String, options: AnalyticsOptions = AnalyticsOptions.analyticsOptions())(implicit scope: AsyncScope): Source[JsonObject, NotUsed]

    Warning: couchbase-community not support analyticsQuery, we not test this API

    Warning: couchbase-community not support analyticsQuery, we not test this API

    Performs an Analytics query and convert document row to jsonObject
    different with analyticsQuery, jsonObject not has the collection Key, but is Document directly

    See also

    CouchbaseSource.analyticsQuery

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def get(id: String, options: GetOptions = GetOptions.getOptions)(implicit asyncCollection: AsyncCollection): Source[GetResult, NotUsed]

    get a document by id from Couchbase collection

    get a document by id from Couchbase collection

    id

    document id

    options

    reference to Couchbase options doc

  11. def getAllReplicas(id: String, options: GetAllReplicasOptions = GetAllReplicasOptions.getAllReplicasOptions)(implicit asyncCollection: AsyncCollection): Source[GetReplicaResult, NotUsed]

    similar to CouchbaseSource.get .Reads from replicas or the active node based on the options and returns the results as a list

    similar to CouchbaseSource.get .Reads from replicas or the active node based on the options and returns the results as a list

    options

    reference to Couchbase options doc

    See also

    CouchbaseSource#get

  12. def getAllReplicasJson(id: String, options: GetAllReplicasOptions = GetAllReplicasOptions.getAllReplicasOptions)(implicit asyncCollection: AsyncCollection): Source[JsonObject, NotUsed]

    reference to CouchbaseSource.getAllReplicas, deserialize to Couchbase JsonObject

  13. def getAllReplicasObject[T](id: String, target: Class[T], options: GetAllReplicasOptions = GetAllReplicasOptions.getAllReplicasOptions)(implicit asyncCollection: AsyncCollection): Source[T, NotUsed]

    reference to CouchbaseSource.getAllReplicas, deserialize to class If you add DefaultScalaModule to jackson of couchbase, it could deserialize to scala class

  14. def getAllReplicasType[T](id: String, target: TypeRef[T], options: GetAllReplicasOptions = GetAllReplicasOptions.getAllReplicasOptions)(implicit asyncCollection: AsyncCollection): Source[T, NotUsed]

    reference to CouchbaseSource.getAllReplicasObject, deserialize to class with Generics

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def getJson(id: String, options: GetOptions = GetOptions.getOptions)(implicit asyncCollection: AsyncCollection): Source[JsonObject, NotUsed]

    reference to CouchbaseSource.get deserialize to Couchbase JsonObject

  17. def getObject[T](id: String, target: Class[T], options: GetOptions = GetOptions.getOptions)(implicit asyncCollection: AsyncCollection): Source[T, NotUsed]

    reference to CouchbaseSource.get,deserialize to class

  18. def getType[T](id: String, target: TypeRef[T], options: GetOptions = GetOptions.getOptions)(implicit asyncCollection: AsyncCollection): Source[T, NotUsed]

    reference to CouchbaseSource.getObject,deserialize to class with Generics

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. def query(statement: String, options: QueryOptions = QueryOptions.queryOptions())(implicit scope: AsyncScope): Source[QueryResult, NotUsed]

    N1QL query in a Scope.

    N1QL query in a Scope.

    QueryResult contains List<Row>, every Row is a json like

      {
        "collectionName": Document
      }
    

  25. def queryAllIndex(options: GetAllQueryIndexesOptions = GetAllQueryIndexesOptions.getAllQueryIndexesOptions)(implicit asyncCollection: AsyncCollection): Source[QueryIndex, NotUsed]

    Fetches all indexes from this collection with custom options.

    Fetches all indexes from this collection with custom options.

    See also

    com.couchbase.client.java.manager.query.AsyncCollectionQueryIndexManager#getAllIndexes

  26. def queryJson(statement: String, options: QueryOptions = QueryOptions.queryOptions())(implicit scope: AsyncScope): Source[JsonObject, NotUsed]

    N1QL query in a Scope.

    N1QL query in a Scope.

    statement

    N1QL query sql

    See also

    CouchbaseSource.query

  27. def scan(scanType: ScanType, options: ScanOptions = ScanOptions.scanOptions())(implicit asyncCollection: AsyncCollection): Source[ScanResult, NotUsed]

    similar to GetCouchbaseSource.get, batch get documents from collection by ScanTypeScanType

  28. def scanJson(scanType: ScanType, options: ScanOptions = ScanOptions.scanOptions())(implicit asyncCollection: AsyncCollection): Source[JsonObject, NotUsed]

    reference to CouchbaseSource.scan, deserialize to Couchbase JsonObject

  29. def scanObject[T](scanType: ScanType, target: Class[T], options: ScanOptions = ScanOptions.scanOptions())(implicit asyncCollection: AsyncCollection): Source[T, NotUsed]

    reference to CouchbaseSource.scan, deserialize to class If you add DefaultScalaModule to jackson of couchbase, it could deserialize to scala class

  30. def scanType[T](scanType: ScanType, target: TypeRef[T], options: ScanOptions = ScanOptions.scanOptions())(implicit asyncCollection: AsyncCollection): Source[T, NotUsed]

    reference to CouchbaseSource.scan, CouchbaseSource.scanObject, deserialize to class with Generics

  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. 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