|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.couchbase.client.protocol.views.AbstractView
com.couchbase.client.protocol.views.View
public class View
Represents a View definition inside the Couchbase cluster. This class knows whether the view contains "map" and/or "reduce" functions. It also is able to generate the URI representation of itself to be used against the cluster. Also, instances of a View can be used in combination with DesignDocuments to actually create them.
Constructor Summary | |
---|---|
View(java.lang.String database,
java.lang.String designDoc,
java.lang.String viewName,
boolean map,
boolean reduce)
Create a new View object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.couchbase.client.protocol.views.AbstractView |
---|
getDatabaseName, getDesignDocumentName, getViewName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public boolean hasMap()
hasMap
in class AbstractView
public boolean hasReduce()
hasReduce
in class AbstractView
public java.lang.String getURI()
getURI
in class AbstractView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |