Package com.couchbase.client.java.view
Class DefaultViewRow
java.lang.Object
com.couchbase.client.java.view.DefaultViewRow
- All Implemented Interfaces:
ViewRow
public class DefaultViewRow extends Object implements ViewRow
-
Constructor Summary
Constructors Constructor Description DefaultViewRow(CouchbaseEnvironment env, AsyncViewRow asyncViewRow) -
Method Summary
Modifier and Type Method Description JsonDocumentdocument()Load the underlying document, if not reduced with the default view timeout.JsonDocumentdocument(long timeout, TimeUnit timeUnit)Load the underlying document, if not reduced with a custom timeout.<D extends Document<?>>
Ddocument(Class<D> target)Load the underlying document, if not reduced with the default view timeout.<D extends Document<?>>
Ddocument(Class<D> target, long timeout, TimeUnit timeUnit)Load the underlying document, if not reduced with a custom timeout.Stringid()The id of the document, if not reduced.Objectkey()The key of the row index.StringtoString()Objectvalue()The value of the row index.
-
Constructor Details
-
DefaultViewRow
-
-
Method Details
-
id
Description copied from interface:ViewRowThe id of the document, if not reduced. -
key
Description copied from interface:ViewRowThe key of the row index. The object can be any valid JSON object, includingJsonArrayorJsonObject. -
value
Description copied from interface:ViewRowThe value of the row index. The object can be any valid JSON object, includingJsonArrayorJsonObject. -
document
Description copied from interface:ViewRowLoad the underlying document, if not reduced with the default view timeout. This method throws: -TimeoutExceptionwrapped in aRuntimeException: If the timeout is exceeded. -BackpressureException: If the incoming request rate is too high to be processed. -IllegalStateException: If the view is reduced and the ID is null. -TranscodingException: If the response document could not be decoded. -
document
Description copied from interface:ViewRowLoad the underlying document, if not reduced with a custom timeout. This method throws: -TimeoutExceptionwrapped in aRuntimeException: If the timeout is exceeded. -BackpressureException: If the incoming request rate is too high to be processed. -IllegalStateException: If the view is reduced and the ID is null. -TranscodingException: If the response document could not be decoded. -
document
Description copied from interface:ViewRowLoad the underlying document, if not reduced with the default view timeout. This method throws: -TimeoutExceptionwrapped in aRuntimeException: If the timeout is exceeded. -BackpressureException: If the incoming request rate is too high to be processed. -IllegalStateException: If the view is reduced and the ID is null. -TranscodingException: If the response document could not be decoded. -
document
Description copied from interface:ViewRowLoad the underlying document, if not reduced with a custom timeout. This method throws: -TimeoutExceptionwrapped in aRuntimeException: If the timeout is exceeded. -BackpressureException: If the incoming request rate is too high to be processed. -IllegalStateException: If the view is reduced and the ID is null. -TranscodingException: If the response document could not be decoded. -
toString
-