org.apache.solr.search.function
Class LinearFloatFunction
java.lang.Object
org.apache.solr.search.function.ValueSource
org.apache.solr.search.function.LinearFloatFunction
- All Implemented Interfaces:
- java.io.Serializable
public class LinearFloatFunction
- extends ValueSource
LinearFloatFunction
implements a linear function over
another ValueSource
.
Normally Used as an argument to a FunctionQuery
- Version:
- $Id: LinearFloatFunction.java 472574 2006-11-08 18:25:52Z yonik $
- Author:
- yonik
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
source
protected final ValueSource source
slope
protected final float slope
intercept
protected final float intercept
LinearFloatFunction
public LinearFloatFunction(ValueSource source,
float slope,
float intercept)
description
public java.lang.String description()
- Description copied from class:
ValueSource
- description of field, used in explain()
- Specified by:
description
in class ValueSource
getValues
public DocValues getValues(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Specified by:
getValues
in class ValueSource
- Throws:
java.io.IOException
hashCode
public int hashCode()
- Specified by:
hashCode
in class ValueSource
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in class ValueSource
Copyright © 2006 - 2009 The Apache Software Foundation