Package 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 withNodeInputFormatandNodeOutputFormat.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NodePath o)StringgetDocumentUri()StringgetFullPath()StringgetRelativePath()voidreadFields(DataInput in)voidset(String uri, String path)voidsetDocumentUri(String docUri)voidsetRelativePath(String path)voidwrite(DataOutput out)
-
-
-
Method Detail
-
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
-
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:
compareToin interfaceComparable<NodePath>
-
-