Class FieldCache.Singles
Field values as 32-bit floats
NOTE: This was Floats in LuceneInherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class FieldCache.Singles
Constructors
Singles()
Initialize an instance of FieldCache.Singles.
Declaration
protected Singles()
Singles(Func<int, float>)
Initialize an instance of FieldCache.Singles with the specified
get
delegate method.
Declaration
public Singles(Func<int, float> get)
Parameters
Type | Name | Description |
---|---|---|
Func<int, float> | get | A Func<T, TResult> that implements the Get(int) method body. |
Fields
EMPTY
Zero value for every document
Declaration
public static readonly FieldCache.Singles EMPTY
Field Value
Type | Description |
---|---|
FieldCache.Singles |
Methods
Get(int)
Return an float representation of this field's value.
Declaration
public virtual float Get(int docID)
Parameters
Type | Name | Description |
---|---|---|
int | docID |
Returns
Type | Description |
---|---|
float |