org.apache.hadoop.contrib.index.mapred
Class DocumentID
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
DocumentID
public DocumentID()
- Constructor.
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