Package org.apache.solr.ltr.norm
Class IdentityNormalizer
- java.lang.Object
-
- org.apache.solr.ltr.norm.Normalizer
-
- org.apache.solr.ltr.norm.IdentityNormalizer
-
public class IdentityNormalizer extends Normalizer
A Normalizer that normalizes a feature value to itself. This is the default normalizer class, if no normalizer is configured then the IdentityNormalizer will be used.
-
-
Field Summary
Fields Modifier and Type Field Description static IdentityNormalizer
INSTANCE
-
Constructor Summary
Constructors Constructor Description IdentityNormalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
normalize(float value)
LinkedHashMap<String,Object>
paramsToMap()
String
toString()
protected void
validate()
As part of creation of a normalizer instance, this function confirms that the normalizer parameters are valid.-
Methods inherited from class org.apache.solr.ltr.norm.Normalizer
explain, getInstance
-
-
-
-
Field Detail
-
INSTANCE
public static final IdentityNormalizer INSTANCE
-
-
Method Detail
-
normalize
public float normalize(float value)
- Specified by:
normalize
in classNormalizer
-
paramsToMap
public LinkedHashMap<String,Object> paramsToMap()
- Specified by:
paramsToMap
in classNormalizer
-
validate
protected void validate() throws NormalizerException
Description copied from class:Normalizer
As part of creation of a normalizer instance, this function confirms that the normalizer parameters are valid.- Specified by:
validate
in classNormalizer
- Throws:
NormalizerException
- Normalizer Exception
-
-