public class DefFunction extends MultiFunction
ValueSource implementation which only returns the values from the provided
ValueSources which are available for a particular docId. Consequently, when combined
with a ConstValueSource, this function serves as a way to return a default
value when the values for a field are unavailable.MultiFunction.Valuessources| Constructor and Description |
|---|
DefFunction(List<ValueSource> sources) |
| Modifier and Type | Method and Description |
|---|---|
FunctionValues |
getValues(Map fcontext,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
protected String |
name() |
allExists, anyExists, createWeight, description, description, equals, hashCode, toString, valsArrgetSortField, newContext, toStringpublic DefFunction(List<ValueSource> sources)
protected String name()
name in class MultiFunctionpublic FunctionValues getValues(Map fcontext, LeafReaderContext readerContext) throws IOException
ValueSourcegetValues in class ValueSourceIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.