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.ValueSourceAbstractValueSourceimplementation which wraps two ValueSources and applies an extendible double function to their values.
-
-
Constructor Summary
Constructors Constructor Description DualDoubleFunction(org.apache.lucene.queries.function.ValueSource a, org.apache.lucene.queries.function.ValueSource b)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreateWeight(Map<Object,Object> context, org.apache.lucene.search.IndexSearcher searcher)Stringdescription()booleanequals(Object o)protected abstract doublefunc(int doc, org.apache.lucene.queries.function.FunctionValues aVals, org.apache.lucene.queries.function.FunctionValues bVals)org.apache.lucene.queries.function.FunctionValuesgetValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext)inthashCode()protected abstract Stringname()
-
-
-
Method Detail
-
name
protected abstract String 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
public String 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
public boolean equals(Object o)
- Specified by:
equalsin classorg.apache.lucene.queries.function.ValueSource
-
-