|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.dico.islab.idbs2.cloud.EsTerm
public class EsTerm
Representation of an essential's keyword with associated relevance. See essential concept in it.unimi.dico.islab.db.cloud package for more details.
CloudNode
Constructor Summary | |
---|---|
protected |
EsTerm(CloudNode node,
Integer termId,
String value,
Double relevance)
Direct use of this constructor is discouraged. |
Method Summary | |
---|---|
int |
compareTo(EsTerm o)
Implementation of a comparison value between two EsTerm objects considering
the relevance of the terms. |
boolean |
equals(Object obj)
Evaluates the equality between the current object and the one passed as argument. |
Integer |
getId()
Get current essential-term identifier (database purposes only) |
CloudNode |
getNode()
Get the owner CloudNode . |
Double |
getRelevance()
Get current term relevance. |
Integer |
getTermId()
Get current term identifier (an EsTerm is actually an association between a Term and
a CloudNode ). |
String |
getTermValue()
Get current term string representation (real term value) |
int |
hashCode()
Returns the hashCode of the contained termValue . |
void |
setNode(CloudNode node)
Set the identifier of the owner node. |
protected void |
setRelevance(Double relevance)
Set current term relevance. |
protected void |
setTermId(Integer termId)
Set current term identifier. |
protected void |
setTermValue(String termValue)
Set current term string representation (real term value). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EsTerm(CloudNode node, Integer termId, String value, Double relevance)
CloudNode.addEsTerm
method instead.
node
- the owner cluster of this term.termId
- the identifier of the corresponding KC database term(an EsTerm is actually an association between a Term
and
a CloudNode
).value
- the String
value of this term.relevance
- the relevance value associated with this term.CloudNode.addEsTerm(Integer, String, Double)
Method Detail |
---|
public Integer getTermId()
Get current term identifier (an EsTerm is actually an association between a Term
and
a CloudNode
).
Term
Term
protected void setTermId(Integer termId)
Set current term identifier. To be set using the constructor (direct use is discouraged).
public String getTermValue()
Get current term string representation (real term value)
protected void setTermValue(String termValue)
Set current term string representation (real term value). To be set using the constructor, direct usage is discouraged.
termValue
- public Double getRelevance()
Get current term relevance.
protected void setRelevance(Double relevance)
Set current term relevance.
relevance
- current term relevance value.public Integer getId()
Get current essential-term identifier (database purposes only)
public CloudNode getNode()
Get the owner CloudNode
.
CloudNode
.public void setNode(CloudNode node)
Set the identifier of the owner node.
public boolean equals(Object obj)
equals
in class Object
EsTerm
class and this termValue
is equal to the given object's term value.public int hashCode()
hashCode
of the contained termValue
.
hashCode
in class Object
hashCode
method of the String termValue
.public int compareTo(EsTerm o)
Implementation of a comparison value between two EsTerm
objects considering
the relevance of the terms.
compareTo
in interface Comparable<EsTerm>
termValue
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |