API Reference 0.4.0couchclientView

View class

class View extends ViewBase {
 final bool _map;
 final bool _reduce;

 View(String bucketName, String designDocName, String viewName, bool map, bool reduce)
     : this._map = map,
       this._reduce = reduce,
       super(bucketName, designDocName, viewName);

 //@override
 bool get hasMap
 => _map;

 //@override
 bool get hasReduce
 => _reduce;

 //@override
 String get uri
 => "/$bucketName/_design/$designDocName/_view/$viewName";
}

Extends

ViewBase > View

Constructors

new View(String bucketName, String designDocName, String viewName, bool map, bool reduce) #

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
View(String bucketName, String designDocName, String viewName, bool map, bool reduce)
   : this._map = map,
     this._reduce = reduce,
     super(bucketName, designDocName, viewName);

Properties

final String bucketName #

inherited from ViewBase
final String bucketName

final String designDocName #

inherited from ViewBase
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.

docs inherited from ViewBase
bool get hasMap
=> _map;

final bool hasReduce #

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

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

docs inherited from ViewBase
bool get hasReduce
=> _reduce;

final String uri #

Returns the URI/String representation of the View.

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

docs inherited from ViewBase
String get uri
=> "/$bucketName/_design/$designDocName/_view/$viewName";

final String viewName #

inherited from ViewBase
final String viewName