com.marklogic.mapreduce
Class MarkLogicDocument
java.lang.Object
com.marklogic.mapreduce.MarkLogicDocument
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class MarkLogicDocument
- extends Object
- implements org.apache.hadoop.io.Writable
Captures any type of MarkLogic documents.
|
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
MarkLogicDocument
public MarkLogicDocument()
getContentType
public ContentType getContentType()
getContentAsText
public org.apache.hadoop.io.Text getContentAsText()
getContentAsByteArray
public byte[] getContentAsByteArray()
getContentAsMarkLogicNode
public MarkLogicNode getContentAsMarkLogicNode()
set
public void set(com.marklogic.xcc.ResultItem item)
setContent
public void setContent(byte[] content)
setContentType
public void setContentType(ContentType type)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com