public class DoubleDocValuesField extends NumericDocValuesField
Double.doubleToRawLongBits(double)
.
Per-document double values can be retrieved via
LeafReader.getNumericDocValues(String)
.
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.
Field.Store
TYPE
fieldsData, name, tokenStream, type
Constructor and Description |
---|
DoubleDocValuesField(String name,
double value)
Creates a new DocValues field with the specified 64-bit double value
|
Modifier and Type | Method and Description |
---|---|
void |
setDoubleValue(double value)
Expert: change the value of this field.
|
void |
setLongValue(long value)
Expert: change the value of this field.
|
newSlowExactQuery, newSlowRangeQuery
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setFloatValue, setIntValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString
public DoubleDocValuesField(String name, double value)
name
- field namevalue
- 64-bit double valueIllegalArgumentException
- if the field name is nullpublic void setDoubleValue(double value)
Field
Field.setStringValue(String)
.setDoubleValue
in class Field
public void setLongValue(long value)
Field
Field.setStringValue(String)
.setLongValue
in class Field
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.