DocumentClient.replaceDocument 方法
定义
重载
replaceDocument(Document document, RequestOptions options) |
Replaces a document with the passed in document.
|
replaceDocument(String documentLink, Object document, RequestOptions options) |
Replaces a document using a POJO object.
|
replaceDocument(Document document, RequestOptions options)
Replaces a document with the passed in document.
public ResourceResponse<Document> replaceDocument(Document document, RequestOptions options)
参数
- document
- Document
the document to replace (containing the document id).
- options
- RequestOptions
the request options.
返回
the resource response with the replaced document.
例外
DocumentClientException
the document client exception.
replaceDocument(String documentLink, Object document, RequestOptions options)
Replaces a document using a POJO object.
public ResourceResponse<Document> replaceDocument(String documentLink, Object document, RequestOptions options)
参数
- documentLink
- String
the document link.
- document
- Object
the document represented as a POJO or Document object.
- options
- RequestOptions
the request options.
返回
the resource response with the replaced document.
例外
DocumentClientException
the document client exception.