com.couchbase.client.protocol.views
Class ViewDesign

java.lang.Object
  extended by com.couchbase.client.protocol.views.ViewDesign

public class ViewDesign
extends java.lang.Object

The ViewDesign object represents a view to be stored and retrieved from the Couchbase cluster.


Constructor Summary
ViewDesign(java.lang.String name, java.lang.String map)
          Create a ViewDesign with a name and a map function.
ViewDesign(java.lang.String name, java.lang.String map, java.lang.String reduce)
          Create a ViewDesign with a name, map and reduce function.
 
Method Summary
 java.lang.String getMap()
          Get the map function of the view.
 java.lang.String getName()
          Get the name of the view.
 java.lang.String getReduce()
          Get the reduce function of the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewDesign

public ViewDesign(java.lang.String name,
                  java.lang.String map)
Create a ViewDesign with a name and a map function.

Parameters:
name - the name of the view.
map - the map function of the view.

ViewDesign

public ViewDesign(java.lang.String name,
                  java.lang.String map,
                  java.lang.String reduce)
Create a ViewDesign with a name, map and reduce function.

Parameters:
name - the name of the view.
map - the map function of the view.
reduce - the reduce function of the view.
Method Detail

getName

public java.lang.String getName()
Get the name of the view.

Returns:
the name of the view.

getMap

public java.lang.String getMap()
Get the map function of the view.

Returns:
the map function of the view.

getReduce

public java.lang.String getReduce()
Get the reduce function of the view.

Returns:
the reduce function of the view.


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.