public abstract class Normalizer extends Object
normalize(float)
methods will
be called and the resulting values will be used by the model.Constructor and Description |
---|
Normalizer() |
Modifier and Type | Method and Description |
---|---|
Explanation |
explain(Explanation explain) |
static Normalizer |
getInstance(SolrResourceLoader solrResourceLoader,
String className,
Map<String,Object> params) |
abstract float |
normalize(float value) |
abstract LinkedHashMap<String,Object> |
paramsToMap() |
protected abstract void |
validate()
As part of creation of a normalizer instance, this function confirms
that the normalizer parameters are valid.
|
public abstract float normalize(float value)
public abstract LinkedHashMap<String,Object> paramsToMap()
public Explanation explain(Explanation explain)
public static Normalizer getInstance(SolrResourceLoader solrResourceLoader, String className, Map<String,Object> params)
protected abstract void validate() throws NormalizerException
NormalizerException
- Normalizer ExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.