MarkLogic Connector for Hadoop 1.1-3

com.marklogic.mapreduce
Class MarkLogicNode

java.lang.Object
  extended by com.marklogic.mapreduce.MarkLogicNode
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class MarkLogicNode
extends Object
implements org.apache.hadoop.io.Writable

A record returned by MarkLogic, used to represent an XML node. Currently only documents, elements and attributes are supported. Use with NodeInputFormat and NodeOutputFormat. May also be used with KeyValueInputFormat and ValueInputFormat.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
MarkLogicNode()
           
MarkLogicNode(Node node)
           
MarkLogicNode(com.marklogic.xcc.ResultItem item)
           
MarkLogicNode(String content, ContentType contentType)
           
 
Method Summary
 Node get()
           
 void readFields(DataInput in)
           
 void set(Node node)
           
 void set(com.marklogic.xcc.ResultItem item)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

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

MarkLogicNode

public MarkLogicNode()

MarkLogicNode

public MarkLogicNode(Node node)

MarkLogicNode

public MarkLogicNode(com.marklogic.xcc.ResultItem item)

MarkLogicNode

public MarkLogicNode(String content,
                     ContentType contentType)
Method Detail

get

public Node get()

set

public void set(Node node)

set

public void set(com.marklogic.xcc.ResultItem item)

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

toString

public String toString()
Overrides:
toString in class Object

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