MarkLogic Connector for Hadoop 1.1-3

com.marklogic.mapreduce
Class MarkLogicDocument

java.lang.Object
  extended by 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
           
 
Constructor Summary
MarkLogicDocument()
           
 
Method Summary
 byte[] getContentAsByteArray()
           
 MarkLogicNode getContentAsMarkLogicNode()
           
 org.apache.hadoop.io.Text getContentAsText()
           
 ContentType getContentType()
           
 void readFields(DataInput in)
           
 void set(com.marklogic.xcc.ResultItem item)
           
 void setContent(byte[] content)
           
 void setContentType(ContentType type)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

MarkLogicDocument

public MarkLogicDocument()
Method Detail

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

MarkLogic Connector for Hadoop 1.1-3

Copyright © 2013 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com