org.apache.solr.search.function
Class LinearFloatFunction

java.lang.Object
  extended by org.apache.solr.search.function.ValueSource
      extended by 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

Field Summary
protected  float intercept
           
protected  float slope
           
protected  ValueSource source
           
 
Constructor Summary
LinearFloatFunction(ValueSource source, float slope, float intercept)
           
 
Method Summary
 java.lang.String description()
          description of field, used in explain()
 boolean equals(java.lang.Object o)
           
 DocValues getValues(org.apache.lucene.index.IndexReader reader)
           
 int hashCode()
           
 
Methods inherited from class org.apache.solr.search.function.ValueSource
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected final ValueSource source

slope

protected final float slope

intercept

protected final float intercept
Constructor Detail

LinearFloatFunction

public LinearFloatFunction(ValueSource source,
                           float slope,
                           float intercept)
Method Detail

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 - 2008 The Apache Software Foundation