public class DesignDocument extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DesignDocument.Option
Optional design document options.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DesignDocument(String name,
List<View> views,
Map<DesignDocument.Option,Long> options) |
| Modifier and Type | Method and Description |
|---|---|
static DesignDocument |
create(String name,
List<View> views)
Creates a new
DesignDocument. |
static DesignDocument |
create(String name,
List<View> views,
Map<DesignDocument.Option,Long> options)
Creates a new
DesignDocument. |
boolean |
equals(Object o) |
static DesignDocument |
from(String name,
JsonObject raw)
Create a design document from a JSON representation of it.
|
int |
hashCode() |
String |
name() |
Map<DesignDocument.Option,Long> |
options() |
JsonObject |
toJsonObject() |
String |
toString() |
List<View> |
views()
Returns a list of the views (raw and spatial) contained in the design document.
|
public static DesignDocument create(String name, List<View> views)
DesignDocument.name - the name of the design document.views - all views it contains.DesignDocument.public static DesignDocument create(String name, List<View> views, Map<DesignDocument.Option,Long> options)
DesignDocument.name - the name of the design document.views - all views it contains.options - optional options of the design document.DesignDocument.public static DesignDocument from(String name, JsonObject raw)
DesignDocument.Option).name - the name of the design document.raw - the raw JSON representing the design document.public String name()
public List<View> views()
Views in the design document.public Map<DesignDocument.Option,Long> options()
Options set on the design document and their values.public JsonObject toJsonObject()
Copyright © 2015 Couchbase, Inc.