Package com.couchbase.client.java.view
Interface View
-
- All Known Implementing Classes:
DefaultView
,SpatialView
@Committed @Public public interface View
Represents a View definition to store and load. UseDefaultView
create methods to build "classic" views andSpatialView
create methods to build spatial/dimensional views.- Since:
- 2.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
name
String name()
The name of the view.- Returns:
- the name.
-
map
String map()
The map function- Returns:
- map function.
-
reduce
String reduce()
The reduce function.- Returns:
- reduce function, or null if none is set.
-
hasReduce
boolean hasReduce()
If a reduce function is set or not.- Returns:
- true if it is, false otherwise.
-
-