Class 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 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)
    • 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