|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.couchbase.client.protocol.views.AbstractView
public abstract class AbstractView
The base class for Views and Spatial Views. This class acts as a base class for both map/reduce views and spatial views. Do not use this class directly, but instead create instances from either the View or the SpatialView classes.
Constructor Summary | |
---|---|
AbstractView(java.lang.String database,
java.lang.String designDoc,
java.lang.String view)
Instantiate a AbstractView object. |
Method Summary | |
---|---|
java.lang.String |
getDatabaseName()
Returns the database (bucket) name. |
java.lang.String |
getDesignDocumentName()
Returns the design document name. |
abstract java.lang.String |
getURI()
Returns the URI/String representation of the View. |
java.lang.String |
getViewName()
Returns the view name. |
abstract boolean |
hasMap()
Checks if the view has a "map" method defined. |
abstract boolean |
hasReduce()
Checks if the view has a "reduce" method defined. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractView(java.lang.String database, java.lang.String designDoc, java.lang.String view)
database
- the name of the database.designDoc
- the name of the corresponding design document.view
- the name of the view itself.Method Detail |
---|
public java.lang.String getDatabaseName()
public java.lang.String getDesignDocumentName()
public java.lang.String getViewName()
public abstract boolean hasMap()
public abstract boolean hasReduce()
public abstract java.lang.String getURI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |