public class XRank extends java.lang.Object implements IRestriction
| Constructor and Description |
|---|
XRank(java.lang.String matchExpression,
java.lang.String rankExpression)
Instantiates a new x rank.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageBoost()
Gets the average boost.
|
double |
getConstantBoost()
Gets the constant boost.
|
int |
getCount()
Gets the count.
|
double |
getNormalizedBoost()
Gets the normalized boost.
|
double |
getPercentageBoost()
Gets the percentage boost.
|
double |
getRangeBoost()
Gets the range boost.
|
double |
getStandardDeviationBoost()
Gets the standard deviation boost.
|
void |
setAverageBoost(double averageBoost)
Sets the average boost.
|
void |
setConstantBoost(double constantBoost)
Sets the constant boost.
|
void |
setCount(int count)
Sets the count.
|
void |
setNormalizedBoost(double normalizedBoost)
Sets the normalized boost.
|
void |
setPercentageBoost(double percentageBoost)
Sets the percentage boost.
|
void |
setRangeBoost(double rangeBoost)
Sets the range boost.
|
void |
setStandardDeviationBoost(double standardDeviationBoost)
Sets the standard deviation boost.
|
java.lang.String |
toString() |
public XRank(java.lang.String matchExpression,
java.lang.String rankExpression)
matchExpression - the match expressionrankExpression - the rank expressionpublic double getAverageBoost()
public double getConstantBoost()
public int getCount()
public double getNormalizedBoost()
public double getPercentageBoost()
public double getRangeBoost()
public double getStandardDeviationBoost()
public void setAverageBoost(double averageBoost)
averageBoost - the new average boostpublic void setConstantBoost(double constantBoost)
constantBoost - the new constant boostpublic void setCount(int count)
count - the new countpublic void setNormalizedBoost(double normalizedBoost)
normalizedBoost - the new normalized boostpublic void setPercentageBoost(double percentageBoost)
percentageBoost - the new percentage boostpublic void setRangeBoost(double rangeBoost)
rangeBoost - the new range boostpublic void setStandardDeviationBoost(double standardDeviationBoost)
standardDeviationBoost - the new standard deviation boostpublic java.lang.String toString()
toString in class java.lang.Object