Package com.couchbase.client.java.query
Class QueryResult
- java.lang.Object
-
- com.couchbase.client.java.query.QueryResult
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> List<T>
allRowsAs(Class<T> target)
List<JsonObject>
allRowsAsObject()
Returns all rows, converted intoJsonObject
s.QueryMeta
meta()
Returns aQueryMeta
giving access to the additional metadata associated with this query.<T> Stream<T>
rowsAs(Class<T> target)
Returns all rows, converted into the target class, and using the default decoder.Stream<JsonObject>
rowsAsObject()
Returns all rows, converted intoJsonObject
s.String
toString()
-
-
-
Method Detail
-
rowsAsObject
public Stream<JsonObject> rowsAsObject()
Returns all rows, converted intoJsonObject
s.- Throws:
DecodingFailedException
- if any row could not be successfully decoded
-
rowsAs
public <T> Stream<T> rowsAs(Class<T> target)
Returns all rows, converted into the target class, and using the default decoder.- Parameters:
target
- the target class to decode into- Throws:
DecodingFailedException
- if any row could not be successfully decoded
-
allRowsAsObject
public List<JsonObject> allRowsAsObject()
Returns all rows, converted intoJsonObject
s.- Throws:
DecodingFailedException
- if any row could not be successfully decoded
-
meta
public QueryMeta meta()
Returns aQueryMeta
giving access to the additional metadata associated with this query.
-
-