public class DivDoubleFunction extends DualDoubleFunction
DivDoubleFunction
returns the quotient of 'a' and 'b'.Modifier and Type | Field and Description |
---|---|
static String |
NAME |
a, b
Constructor and Description |
---|
DivDoubleFunction(org.apache.lucene.queries.function.ValueSource a,
org.apache.lucene.queries.function.ValueSource b) |
Modifier and Type | Method and Description |
---|---|
protected double |
func(int doc,
org.apache.lucene.queries.function.FunctionValues aVals,
org.apache.lucene.queries.function.FunctionValues bVals) |
protected String |
name() |
createWeight, description, equals, getValues, hashCode
public static final String NAME
public DivDoubleFunction(org.apache.lucene.queries.function.ValueSource a, org.apache.lucene.queries.function.ValueSource b)
a
- the numerator.b
- the denominator.protected String name()
name
in class DualDoubleFunction
protected double func(int doc, org.apache.lucene.queries.function.FunctionValues aVals, org.apache.lucene.queries.function.FunctionValues bVals)
func
in class DualDoubleFunction
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.