Class LeafDoubleFieldData
java.lang.Object
org.elasticsearch.index.fielddata.plain.LeafDoubleFieldData
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.util.Accountable,Releasable,LeafFieldData,LeafNumericFieldData
public abstract class LeafDoubleFieldData extends java.lang.Object implements LeafNumericFieldData
Specialization of
LeafNumericFieldData for floating-point numerics.-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedLeafDoubleFieldData(long ramBytesUsed) -
Method Summary
Modifier and Type Method Description voidclose()static LeafNumericFieldDataempty(int maxDoc)SortedBinaryDocValuesgetBytesValues()Return a String representation of the values.DocValueFetcher.LeafgetLeafValueFetcher(DocValueFormat format)Return a value fetcher for this leaf implementation.org.apache.lucene.index.SortedNumericDocValuesgetLongValues()Get an integer view of the values of this segment.ScriptDocValues<java.lang.Double>getScriptValues()Returns field values for use in scripting.longramBytesUsed()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.fielddata.LeafNumericFieldData
getDoubleValues
-
Constructor Details
-
LeafDoubleFieldData
protected LeafDoubleFieldData(long ramBytesUsed)
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getScriptValues
Description copied from interface:LeafFieldDataReturns field values for use in scripting.- Specified by:
getScriptValuesin interfaceLeafFieldData
-
getBytesValues
Description copied from interface:LeafFieldDataReturn a String representation of the values.- Specified by:
getBytesValuesin interfaceLeafFieldData
-
getLongValues
public final org.apache.lucene.index.SortedNumericDocValues getLongValues()Description copied from interface:LeafNumericFieldDataGet an integer view of the values of this segment. If the implementation stores floating-point numbers then these values will return the same values but casted to longs.- Specified by:
getLongValuesin interfaceLeafNumericFieldData
-
empty
-
getLeafValueFetcher
Description copied from interface:LeafFieldDataReturn a value fetcher for this leaf implementation.- Specified by:
getLeafValueFetcherin interfaceLeafFieldData
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceReleasable
-