Class MultiFunction
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Inheritance
MultiFunction
Assembly: Lucene.Net.Queries.dll
Syntax
public abstract class MultiFunction : ValueSource
Constructors
MultiFunction(IList<ValueSource>)
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Declaration
protected MultiFunction(IList<ValueSource> sources)
Parameters
Fields
m_sources
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Declaration
protected readonly IList<ValueSource> m_sources
Field Value
Properties
Name
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Declaration
protected abstract string Name { get; }
Property Value
Methods
CreateWeight(IDictionary, IndexSearcher)
Implementations should propagate CreateWeight to sub-ValueSources which can optionally store
weight info in the context. The context object will be passed to GetValues()
where this info can be retrieved.
Declaration
public override void CreateWeight(IDictionary context, IndexSearcher searcher)
Parameters
Type |
Name |
Description |
IDictionary |
context |
|
IndexSearcher |
searcher |
|
Overrides
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
object |
o |
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetDescription()
description of field, used in Explain()
Declaration
public override string GetDescription()
Returns
Overrides
GetDescription(string, IList<ValueSource>)
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Declaration
public static string GetDescription(string name, IList<ValueSource> sources)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
ToString(string, FunctionValues[], int)
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Declaration
public static string ToString(string name, FunctionValues[] valsArr, int doc)
Parameters
Returns
ValsArr(IList<ValueSource>, IDictionary, AtomicReaderContext)
Abstract parent class for ValueSource implementations that wrap multiple
ValueSources and apply their own logic.
Declaration
public static FunctionValues[] ValsArr(IList<ValueSource> sources, IDictionary fcontext, AtomicReaderContext readerContext)
Parameters
Returns