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.
Use
DefaultView
create methods to build "classic" views and
SpatialView
create methods to build spatial/dimensional views.- Since:
- 2.0
- Author:
- Michael Nitschinger
-
Method Summary
-
Method Details
-
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.
-