public abstract class MultiFunction extends ValueSource
ValueSource
implementations that wrap multiple
ValueSources and apply their own logic.Modifier and Type | Class and Description |
---|---|
class |
MultiFunction.Values |
Modifier and Type | Field and Description |
---|---|
protected List<ValueSource> |
sources |
Constructor and Description |
---|
MultiFunction(List<ValueSource> sources) |
Modifier and Type | Method and Description |
---|---|
void |
createWeight(Map context,
IndexSearcher searcher)
Implementations should propagate createWeight to sub-ValueSources which can optionally store
weight info in the context.
|
String |
description()
description of field, used in explain()
|
static String |
description(String name,
List<ValueSource> sources) |
boolean |
equals(Object o) |
int |
hashCode() |
protected abstract String |
name() |
static String |
toString(String name,
FunctionValues[] valsArr,
int doc) |
static FunctionValues[] |
valsArr(List<ValueSource> sources,
Map fcontext,
AtomicReaderContext readerContext) |
getSortField, getValues, newContext, toString
protected final List<ValueSource> sources
public MultiFunction(List<ValueSource> sources)
protected abstract String name()
public String description()
ValueSource
description
in class ValueSource
public static String description(String name, List<ValueSource> sources)
public static FunctionValues[] valsArr(List<ValueSource> sources, Map fcontext, AtomicReaderContext readerContext) throws IOException
IOException
public static String toString(String name, FunctionValues[] valsArr, int doc)
public void createWeight(Map context, IndexSearcher searcher) throws IOException
ValueSource
createWeight
in class ValueSource
IOException
public int hashCode()
hashCode
in class ValueSource
public boolean equals(Object o)
equals
in class ValueSource
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.