java.util.Collection<DocumentWriteOperation>, java.lang.Iterable<DocumentWriteOperation>, java.util.Set<DocumentWriteOperation>public interface DocumentWriteSet extends java.util.Set<DocumentWriteOperation>
DocumentWriteOperations to be sent
to the server through the REST API as a bulk write request. Instantiate with DocumentManager.newWriteSet().| Modifier and Type | Method | 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,
AbstractWriteHandle contentHandle,
java.lang.String temporalDocumentURI) |
Adds to this write set a document with the given uri template, temporalDocumentURI 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(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
AbstractWriteHandle contentHandle,
java.lang.String temporalDocumentURI) |
Adds to this write set a document with the given uri template, metadata, temporalDocumentURI
and contents provided by the handle
|
DocumentWriteSet |
add(java.lang.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(java.lang.String docId,
AbstractWriteHandle contentHandle,
java.lang.String temporalDocumentURI) |
Adds to this write set a document with the given docId (server uri),
temporalDocumentURI and contents provided by the handle
|
DocumentWriteSet |
add(java.lang.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 |
add(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
AbstractWriteHandle contentHandle,
java.lang.String temporalDocumentURI) |
Adds to this write set a document with the given docId (server uri),
metadata, temporalDocumentURI and contents provided by the handle
|
DocumentWriteSet |
addAs(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
java.lang.Object content) |
Adds to this write set a document with the given docId (server uri),
metadata, and contents.
|
DocumentWriteSet |
addAs(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
java.lang.Object content,
java.lang.String temporalDocumentURI) |
Adds to this write set a document with the given docId (server uri),
metadata, temporalDocumentURI and contents.
|
DocumentWriteSet |
addAs(java.lang.String docId,
java.lang.Object content) |
Adds to this write set a document with the given docId (server uri)
and contents.
|
DocumentWriteSet |
addAs(java.lang.String docId,
java.lang.Object content,
java.lang.String temporalDocumentURI) |
Adds to this write set a document with the given docId (server uri),
temporalDocumentURI 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
|
DocumentWriteSet addDefault(DocumentMetadataWriteHandle metadataHandle)
metadataHandle - the handle containing the metatdata to use as defaultsDocumentWriteSet disableDefault()
DocumentWriteSet add(java.lang.String docId, AbstractWriteHandle contentHandle)
docId - the URI identifier for the documentcontentHandle - a handle for writing the content of the documentDocumentWriteSet addAs(java.lang.String docId, java.lang.Object content)
ContentHandle are registered.
Learn more about shortcut methodsdocId - the URI identifier for the documentcontent - an IO representation of the document contentDocumentWriteSet add(java.lang.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(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, java.lang.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 documentDocumentWriteSet add(java.lang.String docId, AbstractWriteHandle contentHandle, java.lang.String temporalDocumentURI)
docId - the version URI identifier for the documentcontentHandle - a handle for writing the content of the documenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet addAs(java.lang.String docId, java.lang.Object content, java.lang.String temporalDocumentURI)
ContentHandle are registered.
Learn more about shortcut methodsdocId - the version URI identifier for the documentcontent - an IO representation of the document contenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet add(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, AbstractWriteHandle contentHandle, java.lang.String temporalDocumentURI)
docId - the version URI identifier for the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - a handle for writing the content of the documenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet addAs(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, java.lang.Object content, java.lang.String temporalDocumentURI)
ContentHandle are registered.
Learn more about shortcut methodsdocId - the version URI identifier for the documentmetadataHandle - a handle for writing the metadata of the documentcontent - an IO representation of the document contenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet add(DocumentDescriptor desc, AbstractWriteHandle contentHandle, java.lang.String temporalDocumentURI)
desc - a descriptor for the version URI identifier, format, and mimetype of the documentcontentHandle - a handle for writing the content of the documenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet add(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, AbstractWriteHandle contentHandle, java.lang.String temporalDocumentURI)
desc - a descriptor for the version 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 documenttemporalDocumentURI - the logical temporal document collection URICopyright © 2013-2019 MarkLogic Corporation.