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 |
addAs(String docId,
DocumentMetadataWriteHandle metadataHandle,
Object content)
Adds to this write set a document with the given docId (server uri),
metadata, and contents.
|
DocumentWriteSet |
addAs(String docId,
Object content)
Adds to this write set a document with the given docId (server uri)
and contents.
|
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
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
DocumentWriteSet addDefault(DocumentMetadataWriteHandle metadataHandle)
metadataHandle
- the handle containing the metatdata to use as defaultsDocumentWriteSet disableDefault()
DocumentWriteSet add(String docId, AbstractWriteHandle contentHandle)
docId
- the URI identifier for the documentcontentHandle
- a handle for writing the content of the documentDocumentWriteSet addAs(String docId, Object content)
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentcontent
- an IO representation of the document contentDocumentWriteSet 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 addAs(String docId, DocumentMetadataWriteHandle metadataHandle, Object content)
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontent
- an IO representation of the document contentDocumentWriteSet 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-2016 MarkLogic Corporation.