Packages

case class AnalyticsResult(rows: Seq[AnalyticsChunkRow], metaData: AnalyticsMetaData) extends Product with Serializable

The results of an Analytics query.

rows

all rows returned from the analytics service

metaData

any additional information related to the Analytics query

Since

1.0.0

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnalyticsResult
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AnalyticsResult(rows: Seq[AnalyticsChunkRow], metaData: AnalyticsMetaData)

    rows

    all rows returned from the analytics service

    metaData

    any additional information related to the Analytics query

Value Members

  1. val metaData: AnalyticsMetaData
  2. def productElementNames: Iterator[String]
    Definition Classes
    Product
  3. def productIterator: Iterator[Any]
    Definition Classes
    Product
  4. def rowsAs[T](implicit deserializer: JsonDeserializer[T]): Try[Seq[T]]

    All returned rows.

    All returned rows. All rows are buffered from the analytics service first.

    T

    The rows can be converted into the user's desired type. This can be any type for which an implicit JsonDeserializer[T] can be found, and can include com.couchbase.client.scala.json.JsonObject, a case class, String, or one of a number of supported third-party JSON libraries.

    returns

    either Success if all rows could be decoded successfully, or a Failure containing the first error