Class PowFloatFunction

  extended by org.apache.lucene.queries.function.ValueSource
      extended by org.apache.lucene.queries.function.valuesource.DualFloatFunction
          extended by org.apache.lucene.queries.function.valuesource.PowFloatFunction

public class PowFloatFunction
extends DualFloatFunction

Function to raise the base "a" to the power "b"

Field Summary
Fields inherited from class org.apache.lucene.queries.function.valuesource.DualFloatFunction
a, b
Constructor Summary
PowFloatFunction(ValueSource a, ValueSource b)
Method Summary
protected  float func(int doc, FunctionValues aVals, FunctionValues bVals)
protected  String name()
Methods inherited from class org.apache.lucene.queries.function.valuesource.DualFloatFunction
createWeight, description, equals, getValues, hashCode
Methods inherited from class org.apache.lucene.queries.function.ValueSource
getSortField, newContext, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public PowFloatFunction(ValueSource a,
                        ValueSource b)
a - the base.
b - the exponent.
Method Detail


protected String name()
Specified by:
name in class DualFloatFunction


protected float func(int doc,
                     FunctionValues aVals,
                     FunctionValues bVals)
Specified by:
func in class DualFloatFunction

Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.