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(java.util.List<ValueSource> sources) |
| Modifier and Type | Method and Description |
|---|---|
FunctionValues |
getValues(java.util.Map fcontext,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight().
|
protected java.lang.String |
name() |
allExists, allExists, anyExists, anyExists, createWeight, description, description, equals, hashCode, toString, valsArrasDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toStringpublic DefFunction(java.util.List<ValueSource> sources)
protected java.lang.String name()
name in class MultiFunctionpublic FunctionValues getValues(java.util.Map fcontext, LeafReaderContext readerContext) throws java.io.IOException
ValueSourcegetValues in class ValueSourcejava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.