public abstract class DualDoubleFunction
extends org.apache.lucene.queries.function.ValueSource
ValueSource implementation which wraps two ValueSources
and applies an extendible double function to their values.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.queries.function.ValueSource |
a |
protected org.apache.lucene.queries.function.ValueSource |
b |
| Constructor and Description |
|---|
DualDoubleFunction(org.apache.lucene.queries.function.ValueSource a,
org.apache.lucene.queries.function.ValueSource b) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWeight(Map 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 context,
org.apache.lucene.index.LeafReaderContext readerContext) |
int |
hashCode() |
protected abstract String |
name() |
protected final org.apache.lucene.queries.function.ValueSource a
protected final org.apache.lucene.queries.function.ValueSource b
public DualDoubleFunction(org.apache.lucene.queries.function.ValueSource a,
org.apache.lucene.queries.function.ValueSource b)
protected abstract String name()
protected abstract double func(int doc,
org.apache.lucene.queries.function.FunctionValues aVals,
org.apache.lucene.queries.function.FunctionValues bVals)
public String description()
description in class org.apache.lucene.queries.function.ValueSourcepublic org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
getValues in class org.apache.lucene.queries.function.ValueSourceIOExceptionpublic void createWeight(Map context, org.apache.lucene.search.IndexSearcher searcher) throws IOException
createWeight in class org.apache.lucene.queries.function.ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class org.apache.lucene.queries.function.ValueSourcepublic int hashCode()
hashCode in class org.apache.lucene.queries.function.ValueSourceCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.