com.marklogic.mapreduce
Class NodePath
java.lang.Object
com.marklogic.mapreduce.NodePath
- All Implemented Interfaces:
- Comparable<NodePath>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<NodePath>
public class NodePath
- extends Object
- implements org.apache.hadoop.io.WritableComparable<NodePath>
Node path usable as a key for a node record. Use with
NodeInputFormat and NodeOutputFormat.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodePath
public NodePath()
NodePath
public NodePath(String uri,
String path)
set
public void set(String uri,
String path)
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
getDocumentUri
public String getDocumentUri()
setDocumentUri
public void setDocumentUri(String docUri)
getRelativePath
public String getRelativePath()
setRelativePath
public void setRelativePath(String path)
getFullPath
public String getFullPath()
compareTo
public int compareTo(NodePath o)
- Specified by:
compareTo in interface Comparable<NodePath>
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com