Modifier | Constructor and Description |
---|---|
protected |
DefaultView(String name,
String map,
String reduce) |
Modifier and Type | Method and Description |
---|---|
static View |
create(String name,
String map)
Create a new representation of a regular, non-spatial view without reduce function.
|
static View |
create(String name,
String map,
String reduce)
Create a new representation of a regular, non-spatial view.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasReduce()
If a reduce function is set or not.
|
String |
map()
The map function
|
String |
name()
The name of the view.
|
String |
reduce()
The reduce function.
|
String |
toString() |
public static View create(String name, String map, String reduce)
name
- the name of the view.map
- the map function (javascript) for the view.reduce
- the reduce function (prebuilt name or custom javascript) for the view.
Use create(String, String)
or null if you don't need one.public static View create(String name, String map)
name
- the name of the view.map
- the map function (javascript) for the view.public boolean hasReduce()
View
Copyright © 2015 Couchbase, Inc.