public interface DocumentDescriptor extends ContentDescriptor
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_VERSION
Indicates that the version of the database
document is not known.
|
UNKNOWN_LENGTH
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUri()
Returns the URI identifier for the database
document.
|
long |
getVersion()
Returns the version for the database
document.
|
void |
setUri(java.lang.String uri)
Specifies the URI identifier for a database
document.
|
void |
setVersion(long version)
Specifies the document version.
|
DocumentDescriptor |
withFormat(Format format)
Specifies the format for a database document and
returns the descriptor object
|
getByteLength,
getFormat,
getMimetype,
setByteLength,
setFormat,
setMimetype
static final long UNKNOWN_VERSION
java.lang.String getUri()
void setUri(java.lang.String uri)
uri
- the document URIDocumentDescriptor withFormat(Format format)
format
- the document formatlong getVersion()
ServerConfigurationManager
to enable versioning on content.void setVersion(long version)
version
- the document version numberCopyright © 2024 MarkLogic Corporation. All Rights Reserved.