K - the type of key emitted by the viewV - the type of value emitted by the viewpublic static interface ViewResponse.Row<K,V>
| Modifier and Type | Method and Description |
|---|---|
Document |
getDocument() |
<D> D |
getDocumentAsType(java.lang.Class<D> docType)
Deserializes the included full content of a result document to the specified type.
|
java.lang.String |
getId() |
K |
getKey() |
V |
getValue() |
java.lang.String getId()
K getKey()
V getValue()
Document getDocument()
java.lang.IllegalStateException - if there is no doc content for the row<D> D getDocumentAsType(java.lang.Class<D> docType)
D - the type of the documentdocType - the class type to deserialize the JSON document tojava.lang.IllegalStateException - if there is no doc content for the row