@Stability.Volatile public class AnalyticsResult extends Object
Modifier and Type | Method and Description |
---|---|
AnalyticsMetaData |
metaData()
Returns the
AnalyticsMetaData giving access to the additional metadata associated with this analytics
query. |
<T> List<T> |
rowsAs(Class<T> target)
Returns all rows, converted into instances of the target class.
|
<T> List<T> |
rowsAs(TypeRef<T> target)
Returns all rows, converted into instances of the target type.
|
List<JsonObject> |
rowsAsObject()
Returns all rows, converted into
JsonObject s. |
String |
toString() |
public <T> List<T> rowsAs(Class<T> target)
target
- the target class to deserialize into.DecodingFailureException
- if any row could not be successfully deserialized.public <T> List<T> rowsAs(TypeRef<T> target)
target
- the target type to deserialize into.DecodingFailureException
- if any row could not be successfully deserialized.public List<JsonObject> rowsAsObject()
JsonObject
s.DecodingFailureException
- if any row could not be successfully deserialized.public AnalyticsMetaData metaData()
AnalyticsMetaData
giving access to the additional metadata associated with this analytics
query.Copyright © 2021 Couchbase, Inc.. All rights reserved.