Package com.couchbase.client.java.view
Class ViewMetaData
- java.lang.Object
-
- com.couchbase.client.java.view.ViewMetaData
-
public class ViewMetaData extends Object
Holds Metadata associated with aViewResult
.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<JsonObject>
debug()
If present, returns debug information of the view request.String
toString()
long
totalRows()
Returns the total number of rows in the view as presented by the server.
-
-
-
Method Detail
-
debug
public Optional<JsonObject> debug()
If present, returns debug information of the view request.This information is only present if the debug flag has been set on the view options in the first place. Note that this is a costly operation and should only be used - as the name suggests - during debugging.
- Returns:
- the debug information as a generic
JsonObject
if present.
-
totalRows
public long totalRows()
Returns the total number of rows in the view as presented by the server.- Returns:
- the total number of rows.
-
-