Class SumSingleFunction
SumSingleFunction returns the sum of its components.
NOTE: This was SumFloatFunction in LuceneInherited Members
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class SumSingleFunction : MultiSingleFunction
Constructors
SumSingleFunction(ValueSource[])
SumSingleFunction returns the sum of its components.
NOTE: This was SumFloatFunction in LuceneDeclaration
public SumSingleFunction(ValueSource[] sources)
Parameters
Type | Name | Description |
---|---|---|
ValueSource[] | sources |
Properties
Name
SumSingleFunction returns the sum of its components.
NOTE: This was SumFloatFunction in LuceneDeclaration
protected override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
Func(int, FunctionValues[])
SumSingleFunction returns the sum of its components.
NOTE: This was SumFloatFunction in LuceneDeclaration
protected override float Func(int doc, FunctionValues[] valsArr)
Parameters
Type | Name | Description |
---|---|---|
int | doc | |
FunctionValues[] | valsArr |
Returns
Type | Description |
---|---|
float |