|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unigram.likelike.common.SeedClusterId
public final class SeedClusterId
Constructor Summary | |
---|---|
SeedClusterId()
Constructor. |
|
SeedClusterId(long seed,
long cid)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(SeedClusterId that)
Compare this into given one. |
boolean |
equals(java.lang.Object o)
equals. |
long |
getClusterId()
get cluster id. |
long |
getSeed()
get hash seed. |
int |
hashCode()
hasCode. |
void |
readFields(java.io.DataInput in)
readFields. |
java.lang.String |
toString()
toString. |
void |
write(java.io.DataOutput out)
write. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SeedClusterId()
public SeedClusterId(long seed, long cid)
seed
- hash seedcid
- cluster idMethod Detail |
---|
public long getClusterId()
public long getSeed()
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
out
- output stream
java.io.IOException
- -public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
in
- input stream
java.io.IOException
- -public int compareTo(SeedClusterId that)
compareTo
in interface java.lang.Comparable<SeedClusterId>
that
- another SeedClusterId object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- compared object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |