org.apache.hadoop.contrib.index.mapred
Class DocumentID

java.lang.Object
  extended by org.apache.hadoop.contrib.index.mapred.DocumentID
All Implemented Interfaces:
java.lang.Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable

public class DocumentID
extends java.lang.Object
implements org.apache.hadoop.io.WritableComparable

The class represents a document id, which is of type text.


Constructor Summary
DocumentID()
          Constructor.
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 org.apache.hadoop.io.Text getText()
          The text of the document id.
 int hashCode()
           
 void readFields(java.io.DataInput in)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentID

public DocumentID()
Constructor.

Method Detail

getText

public org.apache.hadoop.io.Text getText()
The text of the document id.

Returns:
the text

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException


Copyright © 2009 The Apache Software Foundation