public interface DocumentWriteOperation extends java.lang.Comparable<DocumentWriteOperation>
Modifier and Type | Interface and Description |
---|---|
static interface |
DocumentWriteOperation.DocumentUriMaker |
static class |
DocumentWriteOperation.OperationType |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Stream<DocumentWriteOperation> |
from(java.util.stream.Stream<? extends AbstractWriteHandle> content,
DocumentWriteOperation.DocumentUriMaker uriMaker)
The from method prepares each content object for writing as a document including generating a URI by inserting a UUID.
|
AbstractWriteHandle |
getContent()
|
DocumentMetadataWriteHandle |
getMetadata()
|
DocumentWriteOperation.OperationType |
getOperationType()
Returns the
DocumentWriteOperation.OperationType set implicitly by your call to
add , addDefault , or
disableDefault . |
java.lang.String |
getTemporalDocumentURI()
The logical temporal document URI of the document as set by your call to
one of the 'add' methods which adds a document to a
DocumentWriteSet |
java.lang.String |
getUri()
The uri for this document if set explicitly by your call to
add(String, ...) |
static DocumentWriteOperation.DocumentUriMaker |
uriMaker(java.lang.String format)
The uriMaker method creates a uri for each document written in the database
|
DocumentWriteOperation.OperationType getOperationType()
DocumentWriteOperation.OperationType
set implicitly by your call to
add
, addDefault
, or
disableDefault
.java.lang.String getUri()
add(String, ...)
DocumentMetadataWriteHandle getMetadata()
AbstractWriteHandle getContent()
java.lang.String getTemporalDocumentURI()
DocumentWriteSet
static java.util.stream.Stream<DocumentWriteOperation> from(java.util.stream.Stream<? extends AbstractWriteHandle> content, DocumentWriteOperation.DocumentUriMaker uriMaker)
content
- a subclass of AbstractWriteHandleuriMaker
- DocumentUriMaker which internally accepts an AbstractWriteHandle and returns a Stringstatic DocumentWriteOperation.DocumentUriMaker uriMaker(java.lang.String format) throws java.lang.IllegalArgumentException
format
- refers to the pattern passed.java.lang.IllegalArgumentException
Copyright © 2013-2021 MarkLogic Corporation.