Class CoolerWeighting
- java.lang.Object
-
- com.funnelback.publicui.search.model.padre.CoolerWeighting
-
public class CoolerWeighting extends Object
Ranking weighting, defined using
-cool
command 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(String name, int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
static CoolerWeighting
fromJSON(String json)
Used to deserialize aCoolerWeighting
from a JSON value, as represented bytoString()
.int
getId()
IdentifierString
getName()
Short name, e.g.int
hashCode()
void
setId(int id)
Identifiervoid
setName(String name)
Short name, e.g.String
toString()
-
-
-
Field Detail
-
SEP
private static final String SEP
Separator between the id and the name- See Also:
- Constant Field Values
-
name
private String name
Short name, e.g. offlink
-
id
private int id
Identifier
-
-
Constructor Detail
-
CoolerWeighting
public CoolerWeighting()
-
CoolerWeighting
public CoolerWeighting(String name, int id)
-
-
Method Detail
-
fromJSON
public static CoolerWeighting fromJSON(String json)
Used to deserialize aCoolerWeighting
from a JSON value, as represented bytoString()
.- Parameters:
json
- JSON representation of aCoolerWeighting
- Returns:
- The deserialized
CoolerWeighting
-
canEqual
protected boolean canEqual(Object other)
-
getName
public String getName()
Short name, e.g. offlink
-
setName
public void setName(String name)
Short name, e.g. offlink
-
getId
public int getId()
Identifier
-
setId
public void setId(int id)
Identifier
-
-