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