public interface DocumentWriteSet extends Set<DocumentWriteOperation>
DocumentWriteOperations to be sent
to the server through the REST API as a bulk write request.| Modifier and Type | Method and Description |
|---|---|
DocumentWriteSet |
add(DocumentDescriptor desc,
AbstractWriteHandle contentHandle)
Adds to this write set a document with the given uri template, and
contents provided by the handle
|
DocumentWriteSet |
add(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
AbstractWriteHandle contentHandle)
Adds to this write set a document with the given uri template, metadata,
and contents provided by the handle
|
DocumentWriteSet |
add(String docId,
AbstractWriteHandle contentHandle)
Adds to this write set a document with the given docId (server uri)
and contents provided by the handle
|
DocumentWriteSet |
add(String docId,
DocumentMetadataWriteHandle metadataHandle,
AbstractWriteHandle contentHandle)
Adds to this write set a document with the given docId (server uri),
metadata, and contents provided by the handle
|
DocumentWriteSet |
addDefault(DocumentMetadataWriteHandle metadataHandle)
Sets the default metadata for this write set for all documents added after this call
|
DocumentWriteSet |
disableDefault()
Removes the default metadata for this write set for all documents added after this call
|
DocumentWriteSet addDefault(DocumentMetadataWriteHandle metadataHandle)
DocumentWriteSet disableDefault()
DocumentWriteSet add(String docId, AbstractWriteHandle contentHandle)
docId - the URI identifier for the documentcontentHandle - a handle for writing the content of the documentDocumentWriteSet add(String docId, DocumentMetadataWriteHandle metadataHandle, AbstractWriteHandle contentHandle)
docId - the URI identifier for the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - a handle for writing the content of the documentDocumentWriteSet add(DocumentDescriptor desc, AbstractWriteHandle contentHandle)
desc - a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle - a handle for writing the content of the documentDocumentWriteSet add(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, AbstractWriteHandle contentHandle)
desc - a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - a handle for writing the content of the documentCopyright © 2013-2015 MarkLogic Corporation.