public abstract class MultiDoubleFunction extends ValueSource
ValueSource
implementation which wraps multiple ValueSources
and applies an extendible double function to their values.Modifier and Type | Field and Description |
---|---|
protected ValueSource[] |
sources |
Constructor and Description |
---|
MultiDoubleFunction(ValueSource[] sources) |
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[] valsArr) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext) |
int |
hashCode() |
protected abstract String |
name() |
getSortField, newContext, toString
protected final ValueSource[] sources
public MultiDoubleFunction(ValueSource[] sources)
protected abstract String name()
protected abstract double func(int doc, FunctionValues[] valsArr)
public String description()
description
in class ValueSource
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
getValues
in class ValueSource
IOException
public void createWeight(Map context, IndexSearcher searcher) throws IOException
createWeight
in class ValueSource
IOException
public boolean equals(Object o)
equals
in class ValueSource
public int hashCode()
hashCode
in class ValueSource
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.