MarkLogic Connector for Hadoop 1.1-3

com.marklogic.mapreduce
Class DocumentURI

java.lang.Object
  extended by com.marklogic.mapreduce.DocumentURI
All Implemented Interfaces:
Comparable<DocumentURI>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<DocumentURI>

public class DocumentURI
extends Object
implements org.apache.hadoop.io.WritableComparable<DocumentURI>

Document URI, used as a key for a document record. Use with DocumentInputFormat and ContentOutputFormat.


Constructor Summary
DocumentURI()
           
DocumentURI(String uri)
           
 
Method Summary
 int compareTo(DocumentURI o)
           
 int getPlacementId(int size)
          Assign a forest based on the URI key and the number of forests.
 String getUnparsedUri()
          Deprecated. 
 String getUri()
           
protected  BigInteger getUriKey()
           
static void main(String[] args)
           
protected  void normalize()
           
 void readFields(DataInput in)
           
 void setUri(String uri)
           
 String toString()
           
 void validate()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentURI

public DocumentURI()

DocumentURI

public DocumentURI(String uri)
Method Detail

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

getUri

public String getUri()

getUnparsedUri

@Deprecated
public String getUnparsedUri()
Deprecated. 


setUri

public void setUri(String uri)

compareTo

public int compareTo(DocumentURI o)
Specified by:
compareTo in interface Comparable<DocumentURI>

toString

public String toString()
Overrides:
toString in class Object

normalize

protected void normalize()

getUriKey

protected BigInteger getUriKey()

getPlacementId

public int getPlacementId(int size)
Assign a forest based on the URI key and the number of forests. Return a zero-based index to the forest list.

Parameters:
size - size
Returns:
index to the forest list.

validate

public void validate()

main

public static void main(String[] args)
                 throws URISyntaxException
Throws:
URISyntaxException

MarkLogic Connector for Hadoop 1.1-3

Copyright © 2013 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com