public class EsTerm extends Object implements Comparable<EsTerm>
Modifier | Constructor and Description |
---|---|
protected |
EsTerm(CloudNode node,
Integer termId,
String value,
Double relevance)
Direct use of this constructor is discouraged.
|
Modifier and Type | Method and Description |
---|---|
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()
Creates a simple string visualization for the current EsTerm using the following pattern:
termValue(termRelevance)
|
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)
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)
public int hashCode()
hashCode
of the contained 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
.