Class CoolerWeighting
- java.lang.Object
-
- com.funnelback.publicui.search.model.padre.CoolerWeighting
-
public class CoolerWeighting extends java.lang.ObjectRanking weighting, defined using
-coolcommand line flags on the query processor.Each weighting is defined by a short name and an identifier
This is used mostly when explain mode is enabled, for the Content Optimiser.
- Since:
- v12.4
-
-
Constructor Summary
Constructors Constructor Description CoolerWeighting()CoolerWeighting(java.lang.String name, int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)2 CoolerWeightings are considered equals if their name + id match.static CoolerWeightingfromJSON(java.lang.String json)Used to deserialize aCoolerWeightingfrom a JSON value, as represented bytoString().intgetId()Identifierjava.lang.StringgetName()Short name, e.g.inthashCode()Hash code based on the name + id properties.voidsetId(int id)IdentifiervoidsetName(java.lang.String name)Short name, e.g.java.lang.StringtoString()
-
-
-
Field Detail
-
SEP
private static final java.lang.String SEP
Separator between the id and the name- See Also:
- Constant Field Values
-
name
private java.lang.String name
Short name, e.g. offlink
-
id
private int id
Identifier
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
2 CoolerWeightings are considered equals if their name + id match.
Two different instances with the same name and id will be considered equal.
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Hash code based on the name + id properties.
Two different instances with the same name and id will have the same hash code.
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
fromJSON
public static CoolerWeighting fromJSON(java.lang.String json)
Used to deserialize aCoolerWeightingfrom a JSON value, as represented bytoString().- Parameters:
json- JSON representation of aCoolerWeighting- Returns:
- The deserialized
CoolerWeighting
-
getName
public java.lang.String getName()
Short name, e.g. offlink
-
setName
public void setName(java.lang.String name)
Short name, e.g. offlink
-
getId
public int getId()
Identifier
-
setId
public void setId(int id)
Identifier
-
-