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

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

public class DocumentID
extends 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(Object obj)
           
 org.apache.hadoop.io.Text getText()
          The text of the document id.
 int hashCode()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(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(Object obj)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

write

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

readFields

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


Copyright © 2009 The Apache Software Foundation