public class View extends AbstractView
| Constructor and Description |
|---|
View(java.lang.String database,
java.lang.String designDoc,
java.lang.String viewName,
boolean map,
boolean reduce)
Create a new View object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getURI()
Returns the URI/String representation of the View.
|
boolean |
hasMap()
Checks if the view has a "map" method defined.
|
boolean |
hasReduce()
Checks if the view has a "reduce" method defined.
|
getDatabaseName, getDesignDocumentName, getViewNamepublic View(java.lang.String database,
java.lang.String designDoc,
java.lang.String viewName,
boolean map,
boolean reduce)
database - the name of the database.designDoc - the name of the corresponding design document.viewName - the name of the view itself.map - if the View contains a map function or not.reduce - if the View contains a reduce function or not.public boolean hasMap()
hasMap in class AbstractViewpublic boolean hasReduce()
hasReduce in class AbstractViewpublic java.lang.String getURI()
getURI in class AbstractViewCopyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.