Class DoubleDocValuesField
Syntactic sugar for encoding doubles as NumericDocValues via J2N.BitConversion.DoubleToRawInt64Bits(System.Double).
Per-document double values can be retrieved via GetDoubles(AtomicReader, String, Boolean).
NOTE: In most all cases this will be rather inefficient, requiring eight bytes per document. Consider encoding double values yourself with only as much precision as you require.
Implements
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)
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class DoubleDocValuesField : NumericDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceDoubleDocValuesField(String, Double)
Creates a new DocValues field with the specified 64-bit double value
Declaration
public DoubleDocValuesField(string name, double value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Double | value | 64-bit double value |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if the field name is |
Methods
| Improve this Doc View SourceSetDoubleValue(Double)
Declaration
public override void SetDoubleValue(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
Overrides
| Improve this Doc View SourceSetInt64Value(Int64)
Declaration
public override void SetInt64Value(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value |