public interface DocumentWriteSet extends Set<DocumentWriteOperation>
Builds a set of DocumentWriteOperations to be sent to the server through the REST API as a bulk write request. Instantiate with DocumentManager.newWriteSet().
| 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,
AbstractWriteHandle contentHandle,
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,
String temporalDocumentURI)
Adds to this write set a document with the given uri template, metadata, temporalDocumentURI 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,
AbstractWriteHandle contentHandle,
String temporalDocumentURI)
Adds to this write set a document with the given docId (server uri), temporalDocumentURI 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 |
add(String docId,
DocumentMetadataWriteHandle metadataHandle,
AbstractWriteHandle contentHandle,
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(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,
DocumentMetadataWriteHandle metadataHandle,
Object content,
String temporalDocumentURI)
Adds to this write set a document with the given docId (server uri), metadata, temporalDocumentURI and contents.
|
DocumentWriteSet |
addAs(String docId,
Object content)
Adds to this write set a document with the given docId (server uri) and contents.
|
DocumentWriteSet |
addAs(String docId,
Object content,
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
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamDocumentWriteSet addDefault(DocumentMetadataWriteHandle metadataHandle)
Sets the default metadata for this write set for all documents added after this call
metadataHandle - the handle containing the metatdata to use as defaultsDocumentWriteSet disableDefault()
Removes the default metadata for this write set for all documents added after this call
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
docId - the URI identifier for the documentcontentHandle - a handle for writing the content of the documentDocumentWriteSet addAs(String docId, Object content)
Adds to this write set a document with the given docId (server uri) and contents.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
docId - the URI identifier for the documentcontent - an IO representation of the document contentDocumentWriteSet 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
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)
Adds to this write set a document with the given docId (server uri), metadata, and contents.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
docId - 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)
Adds to this write set a document with the given uri template, and contents provided by the handle
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)
Adds to this write set a document with the given uri template, metadata, and contents provided by the handle
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(String docId, AbstractWriteHandle contentHandle, String temporalDocumentURI)
Adds to this write set a document with the given docId (server uri), temporalDocumentURI and contents provided by the handle
docId - the version URI identifier for the documentcontentHandle - a handle for writing the content of the documenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet addAs(String docId, Object content, String temporalDocumentURI)
Adds to this write set a document with the given docId (server uri), temporalDocumentURI and contents.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
docId - the version URI identifier for the documentcontent - an IO representation of the document contenttemporalDocumentURI - the logical temporal document collection URIDocumentWriteSet add(String docId, DocumentMetadataWriteHandle metadataHandle, AbstractWriteHandle contentHandle, String temporalDocumentURI)
Adds to this write set a document with the given docId (server uri), metadata, temporalDocumentURI and contents provided by the handle
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(String docId, DocumentMetadataWriteHandle metadataHandle, Object content, String temporalDocumentURI)
Adds to this write set a document with the given docId (server uri), metadata, temporalDocumentURI and contents.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
docId - 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, String temporalDocumentURI)
Adds to this write set a document with the given uri template, temporalDocumentURI and contents provided by the handle
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, String temporalDocumentURI)
Adds to this write set a document with the given uri template, metadata, temporalDocumentURI and contents provided by the handle
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-2017 MarkLogic Corporation.