A view index specification consisting of a 'map' function and optionally a 'reduce' function.
-
Constructor Summary 
Constructors
Create a new view with the given map function and no reduce function.
Creates a new view with a map function and a reduce function.
-
Method Summary 
boolean
int
Returns the map function.
Returns the reduce function if this view has one.
-
Constructor Details 
-
View 
Create a new view with the given map function and no reduce function.
- Parameters:
map
- map function for this view
-
View 
Creates a new view with a map function and a reduce function.
- Parameters:
map
- map function for this view
reduce
- reduce function for this view (may be null)
-
Method Details 
-
map 
Returns the map function.
-
reduce 
Returns the reduce function if this view has one.
-
-
-