com.marklogic.mapreduce
Class MarkLogicNode
java.lang.Object
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
|
LOG
public static final org.apache.commons.logging.Log LOG
MarkLogicNode
public MarkLogicNode()
MarkLogicNode
public MarkLogicNode(Node node)
MarkLogicNode
public MarkLogicNode(com.marklogic.xcc.ResultItem item)
MarkLogicNode
public MarkLogicNode(String content,
ContentType contentType)
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
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com