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
- Alphabetic
- By Inheritance
- AnalyticsResult
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
- val metaData: AnalyticsMetaData
-
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 includecom.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