public abstract class DualDoubleFunction extends ValueSource
ValueSource implementation which wraps two ValueSources
and applies an extendible double function to their values.| Modifier and Type | Field and Description |
|---|---|
protected ValueSource |
a |
protected ValueSource |
b |
| Constructor and Description |
|---|
DualDoubleFunction(ValueSource a,
ValueSource b) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWeight(Map context,
IndexSearcher searcher) |
String |
description() |
boolean |
equals(Object o) |
protected abstract double |
func(int doc,
FunctionValues aVals,
FunctionValues bVals) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext) |
int |
hashCode() |
protected abstract String |
name() |
getSortField, newContext, toStringprotected final ValueSource a
protected final ValueSource b
public DualDoubleFunction(ValueSource a, ValueSource b)
protected abstract String name()
protected abstract double func(int doc,
FunctionValues aVals,
FunctionValues bVals)
public String description()
description in class ValueSourcepublic FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
getValues in class ValueSourceIOExceptionpublic void createWeight(Map context, IndexSearcher searcher) throws IOException
createWeight in class ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class ValueSourcepublic int hashCode()
hashCode in class ValueSourceCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.