Uses of Class
org.apache.lucene.queries.function.FunctionValues
Package
Description
Queries that compute score based upon a function.
FunctionValues for different data types.
A variety of functions to use with FunctionQuery.
-
Uses of FunctionValues in org.apache.lucene.queries.function
Modifier and TypeMethodDescriptionabstract FunctionValues
ValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) Gets the values for this reader and the context that was previously passed to createWeight().ModifierConstructorDescriptionprotected
ValueSourceScorer
(Weight weight, LeafReaderContext readerContext, FunctionValues values) -
Uses of FunctionValues in org.apache.lucene.queries.function.docvalues
Modifier and TypeClassDescriptionclass
AbstractFunctionValues
implementation which supports retrieving boolean values.class
Serves as base class for FunctionValues based on DocTermsIndex.class
AbstractFunctionValues
implementation which supports retrieving double values.class
AbstractFunctionValues
implementation which supports retrieving float values.class
AbstractFunctionValues
implementation which supports retrieving int values.class
AbstractFunctionValues
implementation which supports retrieving long values.class
AbstractFunctionValues
implementation which supports retrieving String values. -
Uses of FunctionValues in org.apache.lucene.queries.function.valuesource
Modifier and TypeClassDescriptionclass
Base implementation that wraps multiple sourcesModifier and TypeMethodDescriptionBytesRefFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ComparisonBoolFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ConstValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DefFunction.getValues
(Map<Object, Object> fcontext, LeafReaderContext readerContext) DocFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DoubleConstValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DoubleFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DualFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) EnumFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) FloatFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) IDFValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) IfFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) IntFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) JoinDocFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) LinearFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) LiteralValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) LongFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) MaxDocValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) MultiFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) NormValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) NumDocsValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) QueryValueSource.getValues
(Map<Object, Object> fcontext, LeafReaderContext readerContext) RangeMapFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ReciprocalFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ScaleFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SimpleFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SortedSetFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SumTotalTermFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) TermFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) TFValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) TotalTermFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) VectorValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) static FunctionValues[]
MultiFunction.valsArr
(List<ValueSource> sources, Map<Object, Object> fcontext, LeafReaderContext readerContext) Modifier and TypeMethodDescriptionstatic boolean
MultiFunction.allExists
(int doc, FunctionValues[] values) Helper utility forFunctionValues
static boolean
MultiFunction.allExists
(int doc, FunctionValues values1, FunctionValues values2) Equivalent to theFunctionValues[]
method with the same name, but optimized for dealing with exactly 2 arguments.static boolean
MultiFunction.anyExists
(int doc, FunctionValues[] values) Helper utility forFunctionValues
static boolean
MultiFunction.anyExists
(int doc, FunctionValues values1, FunctionValues values2) Equivalent to theFunctionValues[]
method with the same name, but optimized for dealing with exactly 2 arguments.abstract boolean
ComparisonBoolFunction.compare
(int doc, FunctionValues lhs, FunctionValues rhs) Perform the comparison, returning true or falseprotected boolean
MaxFloatFunction.exists
(int doc, FunctionValues[] valsArr) True if any of the specifiedvalues
exists(int)
for the specified doc, else false.protected boolean
MinFloatFunction.exists
(int doc, FunctionValues[] valsArr) True if any of the specifiedvalues
exists(int)
for the specified doc, else false.protected boolean
MultiFloatFunction.exists
(int doc, FunctionValues[] valsArr) Called byexists(int)
for each document.protected float
DivFloatFunction.func
(int doc, FunctionValues aVals, FunctionValues bVals) protected abstract float
DualFloatFunction.func
(int doc, FunctionValues aVals, FunctionValues bVals) protected float
MaxFloatFunction.func
(int doc, FunctionValues[] valsArr) protected float
MinFloatFunction.func
(int doc, FunctionValues[] valsArr) protected abstract boolean
MultiBoolFunction.func
(int doc, FunctionValues[] vals) protected abstract float
MultiFloatFunction.func
(int doc, FunctionValues[] valsArr) protected float
PowFloatFunction.func
(int doc, FunctionValues aVals, FunctionValues bVals) protected float
ProductFloatFunction.func
(int doc, FunctionValues[] valsArr) protected abstract boolean
SimpleBoolFunction.func
(int doc, FunctionValues vals) protected abstract float
SimpleFloatFunction.func
(int doc, FunctionValues vals) protected float
SumFloatFunction.func
(int doc, FunctionValues[] valsArr) static String
MultiFunction.toString
(String name, FunctionValues[] valsArr, int doc)