public class DoubleDocValuesField extends NumericDocValuesField
Double.doubleToRawLongBits(double)
.
Per-document double values can be retrieved via
FieldCache.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.
Field.Index, Field.Store, Field.TermVector
TYPE
boost, 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.
|
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setFloatValue, setIntValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString, translateFieldType
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-2013 Apache Software Foundation. All Rights Reserved.