Package 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 withNodeInputFormatandNodeOutputFormat. May also be used withKeyValueInputFormatandValueInputFormat.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description MarkLogicNode()MarkLogicNode(com.marklogic.xcc.ResultItem item)MarkLogicNode(String content, ContentType contentType)MarkLogicNode(Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nodeget()voidreadFields(DataInput in)voidset(com.marklogic.xcc.ResultItem item)voidset(Node node)StringtoString()voidwrite(DataOutput out)
-
-
-
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:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-