Package com.couchbase.client.java.view
Class ViewResult
- java.lang.Object
-
- com.couchbase.client.java.view.ViewResult
-
public class ViewResult extends Object
Holds a the result of a View request operation if successful.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ViewRow>
allRows()
ViewMeta
meta()
Returns the metadata associated with thisViewResult
.Stream<ViewRow>
rows()
Returns theViewRows
in a blocking, but streaming fashion.String
toString()
-
-
-
Method Detail
-
allRows
public List<ViewRow> allRows()
Convenience method to collect allrows()
into aList
.Be careful when using this method on a large result since it will end up buffering the complete result set in memory. This is very helpful for small queries and exploration, but for larger responses we recommend using either the blocking
rows()
method or the reactive variants for ultimate control.- Returns:
- a collected list of
ViewRows
.
-
meta
public ViewMeta meta()
Returns the metadata associated with thisViewResult
.- Returns:
- the metadata associated.
-
-