org.apache.hadoop.contrib.index.mapred
Class DocumentID
java.lang.Object
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.
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(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