public interface AllDocsResponse
Provides methods to facilitate processing of the response.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getDocIds() |
java.util.List<Document> |
getDocs() |
<D> java.util.List<D> |
getDocsAs(java.lang.Class<D> docType)
Deserializes the included full content of result documents to a list of the specified type.
|
java.util.Map<java.lang.String,java.lang.String> |
getIdsAndRevs()
Gets a map of the document id and revision for each result in the _all_docs request.
|
java.util.List<Document> getDocs()
java.lang.IllegalStateException
- if include_docs was false
java.util.Map<java.lang.String,java.lang.String> getIdsAndRevs()
<D> java.util.List<D> getDocsAs(java.lang.Class<D> docType)
D
- the type of the documentdocType
- the class type to deserialize the JSON document tojava.lang.IllegalStateException
- if include_docs was false
java.util.List<java.lang.String> getDocIds()