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
AbstractValueSource
implementation 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 void
createWeight(Map<Object,Object> context, org.apache.lucene.search.IndexSearcher searcher)
String
description()
boolean
equals(Object o)
protected abstract double
func(int doc, org.apache.lucene.queries.function.FunctionValues aVals, org.apache.lucene.queries.function.FunctionValues bVals)
org.apache.lucene.queries.function.FunctionValues
getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext)
int
hashCode()
protected abstract String
name()
-
-
-
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:
description
in 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:
getValues
in 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:
createWeight
in classorg.apache.lucene.queries.function.ValueSource
- Throws:
IOException
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.queries.function.ValueSource
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classorg.apache.lucene.queries.function.ValueSource
-
-