Class AnalyticsResult
java.lang.Object
com.couchbase.client.java.analytics.AnalyticsResult
@Volatile public class AnalyticsResult extends Object
The result of an analytics query, including rows and associated metadata.
- Since:
- 3.0.0
-
Method Summary
Modifier and Type Method Description AnalyticsMetaDatametaData()Returns theAnalyticsMetaDatagiving access to the additional metadata associated with this analytics query.<T> List<T>rowsAs(TypeRef<T> target)Returns all rows, converted into instances of the target type.<T> List<T>rowsAs(Class<T> target)Returns all rows, converted into instances of the target class.List<JsonObject>rowsAsObject()Returns all rows, converted intoJsonObjects.StringtoString()
-
Method Details
-
rowsAs
Returns all rows, converted into instances of the target class.- Parameters:
target- the target class to deserialize into.- Throws:
DecodingFailureException- if any row could not be successfully deserialized.
-
rowsAs
Returns all rows, converted into instances of the target type.- Parameters:
target- the target type to deserialize into.- Throws:
DecodingFailureException- if any row could not be successfully deserialized.
-
rowsAsObject
Returns all rows, converted intoJsonObjects.- Throws:
DecodingFailureException- if any row could not be successfully deserialized.
-
metaData
Returns theAnalyticsMetaDatagiving access to the additional metadata associated with this analytics query. -
toString
-