public class KeywordRelevance extends Object implements Comparable<KeywordRelevance>
Modifier | Constructor and Description |
---|---|
protected |
KeywordRelevance(CloudNode node,
Integer keywordId,
String value,
Double relevance)
Direct use of this constructor is discouraged.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(KeywordRelevance 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)
|
String |
getKeyword()
Get current term string representation (real term value)
|
Integer |
getKeywordId()
Get current term identifier (an EsTerm is actually an association between a
Term and
a CloudNode ). |
protected CloudNode |
getNode()
Get the owner
CloudNode . |
Double |
getRelevance()
Get current term relevance.
|
Integer |
getTermId()
Deprecated.
|
String |
getTermValue()
Deprecated.
|
int |
hashCode()
Returns the
hashCode of the contained termValue . |
void |
setKeyword(String keywordValue)
Set current term string representation (real term value).
|
protected void |
setKeywordId(Integer keywordId)
Set current term identifier.
|
protected void |
setNode(CloudNode node)
Set the identifier of the owner node.
|
void |
setRelevance(Double relevance)
Set current term relevance.
|
protected void |
setTermId(Integer termId)
Deprecated.
|
void |
setTermValue(String termValue)
Deprecated.
|
String |
toString()
Creates a simple string visualization for the current EsTerm using the following pattern:
termValue(termRelevance)
|
protected KeywordRelevance(CloudNode node, Integer keywordId, String value, Double relevance)
CloudNode.addEsTerm
method instead.node
- the owner cluster of this term.keywordId
- 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)
public Integer getKeywordId()
Get current term identifier (an EsTerm is actually an association between a Term
and
a CloudNode
).
Term
Term
@Deprecated public Integer getTermId()
getKeywordId()
.protected void setKeywordId(Integer keywordId)
Set current term identifier. To be set using the constructor (direct use is discouraged).
@Deprecated protected void setTermId(Integer termId)
setKeywordId(Integer)
.public String getKeyword()
Get current term string representation (real term value)
@Deprecated public String getTermValue()
getKeyword()
.public void setKeyword(String keywordValue)
Set current term string representation (real term value). To be set using the constructor, direct usage is discouraged.
keywordValue
- @Deprecated public void setTermValue(String termValue)
setKeyword(String)
.public Double getRelevance()
Get current term relevance.
public void setRelevance(Double relevance)
Set current term relevance.
relevance
- current term relevance value.public Integer getId()
Get current essential-term identifier (database purposes only)
protected CloudNode getNode()
Get the owner CloudNode
.
CloudNode
.protected void setNode(CloudNode node)
Set the identifier of the owner node.
public boolean equals(Object obj)
public int hashCode()
hashCode
of the contained termValue
.public int compareTo(KeywordRelevance o)
Implementation of a comparison value between two EsTerm
objects considering
the relevance of the terms.
compareTo
in interface Comparable<KeywordRelevance>
termValue
.