Package org.apache.solr.search.function
Class DualDoubleFunction
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.solr.search.function.DualDoubleFunction
public abstract class DualDoubleFunction
extends org.apache.lucene.queries.function.ValueSource
Abstract
ValueSource implementation which wraps two ValueSources and applies an
extendible double function to their values.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDualDoubleFunction(org.apache.lucene.queries.function.ValueSource a, org.apache.lucene.queries.function.ValueSource b) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWeight(Map<Object, Object> context, org.apache.lucene.search.IndexSearcher searcher) booleanprotected abstract doublefunc(int doc, org.apache.lucene.queries.function.FunctionValues aVals, org.apache.lucene.queries.function.FunctionValues bVals) org.apache.lucene.queries.function.FunctionValuesinthashCode()protected abstract Stringname()Methods inherited from class org.apache.lucene.queries.function.ValueSource
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
-
Field Details
-
a
protected final org.apache.lucene.queries.function.ValueSource a -
b
protected final org.apache.lucene.queries.function.ValueSource b
-
-
Constructor Details
-
DualDoubleFunction
public DualDoubleFunction(org.apache.lucene.queries.function.ValueSource a, org.apache.lucene.queries.function.ValueSource b) - Parameters:
a- the base.b- the exponent.
-
-
Method Details
-
name
-
func
protected abstract double func(int doc, org.apache.lucene.queries.function.FunctionValues aVals, org.apache.lucene.queries.function.FunctionValues bVals) throws IOException - Throws:
IOException
-
description
- Specified by:
descriptionin classorg.apache.lucene.queries.function.ValueSource
-
getValues
public org.apache.lucene.queries.function.FunctionValues getValues(Map<Object, Object> context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException- Specified by:
getValuesin classorg.apache.lucene.queries.function.ValueSource- Throws:
IOException
-
createWeight
public void createWeight(Map<Object, Object> context, org.apache.lucene.search.IndexSearcher searcher) throws IOException- Overrides:
createWeightin classorg.apache.lucene.queries.function.ValueSource- Throws:
IOException
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.queries.function.ValueSource
-
equals
- Specified by:
equalsin classorg.apache.lucene.queries.function.ValueSource
-