public class QueryResult extends Object
Modifier and Type | Method and Description |
---|---|
QueryMetaData |
metaData()
Returns the
QueryMetaData giving access to the additional metadata associated with this 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 List<JsonObject> rowsAsObject()
JsonObject
s.DecodingFailureException
- if any row could not be successfully deserialized.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 QueryMetaData metaData()
QueryMetaData
giving access to the additional metadata associated with this query.Copyright © 2020 Couchbase, Inc.. All rights reserved.