org.elasticsearch.index.field.data.doubles
Class SingleValueDoubleFieldData

java.lang.Object
  extended by org.elasticsearch.index.field.data.FieldData<Doc>
      extended by org.elasticsearch.index.field.data.NumericFieldData<DoubleDocFieldData>
          extended by org.elasticsearch.index.field.data.doubles.DoubleFieldData
              extended by org.elasticsearch.index.field.data.doubles.SingleValueDoubleFieldData

public class SingleValueDoubleFieldData
extends DoubleFieldData


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.index.field.data.doubles.DoubleFieldData
DoubleFieldData.ValueInDocProc, DoubleFieldData.ValueProc
 
Nested classes/interfaces inherited from class org.elasticsearch.index.field.data.NumericFieldData
NumericFieldData.DoubleValueInDocProc, NumericFieldData.LongValueInDocProc, NumericFieldData.MissingDoubleValueInDocProc, NumericFieldData.MissingLongValueInDocProc
 
Nested classes/interfaces inherited from class org.elasticsearch.index.field.data.FieldData
FieldData.OrdinalInDocProc, FieldData.StringValueInDocProc, FieldData.StringValueProc
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.field.data.doubles.DoubleFieldData
EMPTY_DOUBLE_ARRAY, values
 
Constructor Summary
SingleValueDoubleFieldData(java.lang.String fieldName, int[] ordinals, double[] values)
           
 
Method Summary
protected  long computeSizeInBytes()
           
 double[] doubleValues(int docId)
           
 void forEachOrdinalInDoc(int docId, FieldData.OrdinalInDocProc proc)
           
 void forEachValueInDoc(int docId, DoubleFieldData.ValueInDocProc proc)
           
 void forEachValueInDoc(int docId, FieldData.StringValueInDocProc proc)
           
 void forEachValueInDoc(int docId, NumericFieldData.DoubleValueInDocProc proc)
           
 void forEachValueInDoc(int docId, NumericFieldData.LongValueInDocProc proc)
           
 void forEachValueInDoc(int docId, NumericFieldData.MissingDoubleValueInDocProc proc)
           
 void forEachValueInDoc(int docId, NumericFieldData.MissingLongValueInDocProc proc)
           
 boolean hasValue(int docId)
          Is there a value associated with this document id.
 boolean multiValued()
          Is the field data a multi valued one (has multiple values / terms per document id) or not.
 double value(int docId)
           
 double[] values(int docId)
           
 
Methods inherited from class org.elasticsearch.index.field.data.doubles.DoubleFieldData
byteValue, createFieldData, docFieldData, doubleValue, floatValue, forEachValue, forEachValue, intValue, load, longValue, shortValue, stringValue, type, values
 
Methods inherited from class org.elasticsearch.index.field.data.FieldData
fieldName, load, sizeInBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleValueDoubleFieldData

public SingleValueDoubleFieldData(java.lang.String fieldName,
                                  int[] ordinals,
                                  double[] values)
Method Detail

computeSizeInBytes

protected long computeSizeInBytes()
Overrides:
computeSizeInBytes in class DoubleFieldData

multiValued

public boolean multiValued()
Description copied from class: FieldData
Is the field data a multi valued one (has multiple values / terms per document id) or not.

Specified by:
multiValued in class FieldData<DoubleDocFieldData>

hasValue

public boolean hasValue(int docId)
Description copied from class: FieldData
Is there a value associated with this document id.

Specified by:
hasValue in class FieldData<DoubleDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              FieldData.StringValueInDocProc proc)
Specified by:
forEachValueInDoc in class FieldData<DoubleDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              NumericFieldData.DoubleValueInDocProc proc)
Specified by:
forEachValueInDoc in class NumericFieldData<DoubleDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              NumericFieldData.LongValueInDocProc proc)
Specified by:
forEachValueInDoc in class NumericFieldData<DoubleDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              NumericFieldData.MissingDoubleValueInDocProc proc)
Specified by:
forEachValueInDoc in class NumericFieldData<DoubleDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              NumericFieldData.MissingLongValueInDocProc proc)
Specified by:
forEachValueInDoc in class NumericFieldData<DoubleDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              DoubleFieldData.ValueInDocProc proc)
Specified by:
forEachValueInDoc in class DoubleFieldData

forEachOrdinalInDoc

public void forEachOrdinalInDoc(int docId,
                                FieldData.OrdinalInDocProc proc)
Specified by:
forEachOrdinalInDoc in class FieldData<DoubleDocFieldData>

doubleValues

public double[] doubleValues(int docId)
Specified by:
doubleValues in class NumericFieldData<DoubleDocFieldData>

value

public double value(int docId)
Specified by:
value in class DoubleFieldData

values

public double[] values(int docId)
Specified by:
values in class DoubleFieldData