|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unigram.likelike.common.Candidate
public class Candidate
Constructor Summary | |
---|---|
Candidate()
Default Constructor. |
|
Candidate(org.apache.hadoop.io.LongWritable cid,
org.apache.hadoop.io.LongWritable clusterSize)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Candidate other)
Compare query into another one. |
boolean |
equals(java.lang.Object obj)
Validate assigned Object(should Query instance) is the same as this. |
org.apache.hadoop.io.LongWritable |
getId()
Get userId who submit the query string. |
org.apache.hadoop.io.LongWritable |
getSize()
Get the time when user submitted query. |
int |
hashCode()
hashCode. |
void |
readFields(java.io.DataInput in)
Read the serialized the query information. |
void |
write(java.io.DataOutput out)
Write the query information for serialization. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Candidate()
public Candidate(org.apache.hadoop.io.LongWritable cid, org.apache.hadoop.io.LongWritable clusterSize)
cid
- candidate (item) idclusterSize
- size of clusterMethod Detail |
---|
public final org.apache.hadoop.io.LongWritable getId()
public final org.apache.hadoop.io.LongWritable getSize()
public final void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
out
- DataOutput
java.io.IOException
- -public final void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
in
- DataInput
java.io.IOException
- -public final int compareTo(Candidate other)
compareTo
in interface java.lang.Comparable<Candidate>
other
- query to be compared
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- a object to be validated.
public final int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |