Package com.couchbase.client.java.view
Class SpatialView
java.lang.Object
com.couchbase.client.java.view.SpatialView
- All Implemented Interfaces:
View
public class SpatialView extends Object implements View
Implementation of a spatial view.
- Since:
- 2.1.0
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Modifier Constructor Description protected
SpatialView(String name, String map)
-
Method Summary
Modifier and Type Method Description static View
create(String name, String map)
Create a new representation of a spatial view.boolean
equals(Object o)
int
hashCode()
boolean
hasReduce()
If a reduce function is set or not.String
map()
The map functionString
name()
The name of the view.String
reduce()
The reduce function.String
toString()
-
Constructor Details
-
SpatialView
-
-
Method Details
-
create
Create a new representation of a spatial view.- Parameters:
name
- the name of the spatial view.map
- the map function (javascript) for the spatial view.- Returns:
- the spatial view object.
-
name
Description copied from interface:View
The name of the view. -
map
Description copied from interface:View
The map function -
reduce
Description copied from interface:View
The reduce function. -
hasReduce
public boolean hasReduce()Description copied from interface:View
If a reduce function is set or not. -
toString
-
equals
-
hashCode
public int hashCode()
-