public class EsType extends Object implements Comparable<EsType>
Modifier | Constructor and Description |
---|---|
protected |
EsType(CloudNode node,
String classId,
Double relevance)
Direct use of this constructor is discouraged.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EsType o)
Implementation of a comparison value between two
EsType objects considering
the relevance of the types. |
boolean |
equals(Object obj)
Evaluates the equality between the current object and the one passed as argument.
|
String |
getClassId()
Get current type identifier (an EsType is actually an association between a
Type and
a CloudNode ). |
Integer |
getId()
Get current essential-type identifier (database purposes only)
|
CloudNode |
getNode()
Get the owner
CloudNode . |
Double |
getRelevance()
Get current type relevance.
|
int |
hashCode()
Returns the
hashCode of the contained classId . |
protected void |
setClassId(String classId)
Set current term identifier.
|
protected void |
setNode(CloudNode node)
Set the identifier of the owner node.
|
void |
setRelevance(Double relevance)
Set current type relevance.
|
String |
toString()
Returns a string representation of the current essential type.
|
protected EsType(CloudNode node, String classId, Double relevance)
CloudNode.addEsType
method instead.node
- the owner cluster of this type.classId
- the identifier of the corresponding KC database type(an EsType is actually an association between a Type
and
a CloudNode
).relevance
- the relevance value associated with this type.CloudNode.addEsType(String, Double)
,
Type
public String getClassId()
Get current type identifier (an EsType is actually an association between a Type
and
a CloudNode
).
Type
Type
protected void setClassId(String classId)
Set current term identifier. To be set using the constructor (direct use is discouraged).
public Double getRelevance()
Get current type relevance.
public void setRelevance(Double relevance)
Set current type relevance.
relevance
- current type relevance value.public Integer getId()
Get current essential-type identifier (database purposes only)
public 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 classId
.public int compareTo(EsType o)
Implementation of a comparison value between two EsType
objects considering
the relevance of the types.
compareTo
in interface Comparable<EsType>
classId
.