API Reference 0.4.0couchclientViewResponse

ViewResponse abstract class

Holds the response of a queried view.

abstract class ViewResponse {
 /**
  * Returns queried rows.
  */
 final Iterable<ViewRow> rows;

 /**
  * Returns queried row errors if any.
  */
 final Iterable<ViewRowError> errors;

 ViewResponse(this.rows, this.errors);

 /**
  * Returns the mapped document of the keys.
  */
 Map<String, dynamic> get map {
   throw new UnsupportedError("This view doesn't contain"
       "documents");
 }

 /**
  * Returns the length of the queried rows.
  */
 int get length => rows.length;
}

Subclasses

ViewResponseNoDocs, ViewResponseReduced, ViewResponseWithDocs

Constructors

new ViewResponse(Iterable<ViewRow> rows, Iterable<ViewRowError> errors) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ViewResponse(this.rows, this.errors);

Properties

final Iterable<ViewRowError> errors #

Returns queried row errors if any.

final Iterable<ViewRowError> errors

final int length #

Returns the length of the queried rows.

int get length => rows.length;

final Map<String, dynamic> map #

Returns the mapped document of the keys.

Map<String, dynamic> get map {
 throw new UnsupportedError("This view doesn't contain"
     "documents");
}

final Iterable<ViewRow> rows #

Returns queried rows.

final Iterable<ViewRow> rows