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 SummaryFields Modifier and Type Field Description static IdentityNormalizerINSTANCE
 - 
Constructor SummaryConstructors Constructor Description IdentityNormalizer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description floatnormalize(float value)LinkedHashMap<String,Object>paramsToMap()StringtoString()protected voidvalidate()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.Normalizerexplain, getInstance
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final IdentityNormalizer INSTANCE 
 
- 
 - 
Method Detail- 
normalizepublic float normalize(float value) - Specified by:
- normalizein class- Normalizer
 
 - 
paramsToMappublic LinkedHashMap<String,Object> paramsToMap() - Specified by:
- paramsToMapin class- Normalizer
 
 - 
validateprotected void validate() throws NormalizerExceptionDescription copied from class:NormalizerAs part of creation of a normalizer instance, this function confirms that the normalizer parameters are valid.- Specified by:
- validatein class- Normalizer
- Throws:
- NormalizerException- Normalizer Exception
 
 
- 
 
-