API Reference 0.4.0couchclientViewBase

ViewBase abstract class

The base class for Views and Spatial Views.

This class acts as a base class for both map/reduce views and spatial

abstract class ViewBase {
 final String viewName;
 final String designDocName;
 final String bucketName;

 ViewBase(this.bucketName, this.designDocName, this.viewName);

 /**
  * Checks if the view has a "map" method defined.
  *
  * @return true if it has a "map" method defined, false otherwise.
  */
 bool get hasMap;

 /**
  * Checks if the view has a "reduce" method defined.
  *
  * @return true if it has a "reduce" method defined, false otherwise.
  */
 bool get hasReduce;

 /**
  * Returns the URI/String representation of the View.
  *
  * @return the URI path of the View to query against the cluster.
  */
 String get uri;
}

Subclasses

SpatialView, View

Constructors

new ViewBase(String bucketName, String designDocName, String viewName) #

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
ViewBase(this.bucketName, this.designDocName, this.viewName);

Properties

final String bucketName #

final String bucketName

final String designDocName #

final String designDocName

final bool hasMap #

Checks if the view has a "map" method defined.

@return true if it has a "map" method defined, false otherwise.

bool get hasMap;

final bool hasReduce #

Checks if the view has a "reduce" method defined.

@return true if it has a "reduce" method defined, false otherwise.

bool get hasReduce;

final String uri #

Returns the URI/String representation of the View.

@return the URI path of the View to query against the cluster.

String get uri;

final String viewName #

final String viewName