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()
Get the document information from an _all_docs request.
|
<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> |
getErrors()
Gets a map of the document id and error message if an error exists for any result
in the _all_docs request.
|
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()
Get the document information from an _all_docs request.
Note that if requesting docs using SettableViewParameters.Common.keys(Object[])
the list of
documents may include deleted documents that have one of the specified ids.
Note if SettableViewParameters.Common.includeDocs(boolean)
is false then attachment metadata
will not be present.
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.
Note that if requesting docs using SettableViewParameters.Common.keys(Object[])
the ids and
revs may include deleted documents that have one of the specified ids.
<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.
Note that if requesting docs using SettableViewParameters.Common.keys(Object[])
the list of
documents may include deleted documents that have one of the specified ids. You may
want to ensure that your document type can support checking of the deleted flag.
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()
java.util.Map<java.lang.String,java.lang.String> getErrors()