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. UseDefaultViewcreate methods to build "classic" views andSpatialViewcreate 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 booleanhasReduce()If a reduce function is set or not.Stringmap()The map functionStringname()The name of the view.Stringreduce()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.
-
-