Package com.marklogic.contentpump
Class DatabaseDocumentWithMeta
- java.lang.Object
-
- com.marklogic.mapreduce.DatabaseDocument
-
- com.marklogic.contentpump.DatabaseDocumentWithMeta
-
- All Implemented Interfaces:
InternalConstants,MarkLogicDocument,org.apache.hadoop.io.Writable
public class DatabaseDocumentWithMeta extends DatabaseDocument
MarkLogicDocument with metadata, usually constructed when importing archive.
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentMetadatameta-
Fields inherited from class com.marklogic.mapreduce.DatabaseDocument
content, contentType, is, LOG
-
Fields inherited from interface com.marklogic.mapreduce.InternalConstants
MAX_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description DatabaseDocumentWithMeta()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentMetadatagetMeta()StringgetProperties()voidreadFields(DataInput in)voidsetMeta(DocumentMetadata meta)voidupdateOptions(com.marklogic.xcc.ContentCreateOptions options)voidwrite(DataOutput out)-
Methods inherited from class com.marklogic.mapreduce.DatabaseDocument
getContentAsByteArray, getContentAsByteStream, getContentAsMarkLogicNode, getContentAsString, getContentAsText, getContentSize, getContentType, isStreamable, set, setContent, setContentType
-
-
-
-
Field Detail
-
meta
protected DocumentMetadata meta
-
-
Method Detail
-
getMeta
public DocumentMetadata getMeta()
-
setMeta
public void setMeta(DocumentMetadata meta)
-
updateOptions
public void updateOptions(com.marklogic.xcc.ContentCreateOptions options)
-
getProperties
public String getProperties()
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceMarkLogicDocument- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classDatabaseDocument- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceMarkLogicDocument- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classDatabaseDocument- Throws:
IOException
-
-