|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.field.data.FieldData<Doc> org.elasticsearch.index.field.data.NumericFieldData<Doc>
public abstract class NumericFieldData<Doc extends NumericDocFieldData>
Nested Class Summary | |
---|---|
static interface |
NumericFieldData.DoubleValueInDocProc
|
static interface |
NumericFieldData.LongValueInDocProc
|
static interface |
NumericFieldData.MissingDoubleValueInDocProc
|
static interface |
NumericFieldData.MissingLongValueInDocProc
|
Nested classes/interfaces inherited from class org.elasticsearch.index.field.data.FieldData |
---|
FieldData.OrdinalInDocProc, FieldData.StringValueInDocProc, FieldData.StringValueProc |
Constructor Summary | |
---|---|
protected |
NumericFieldData(String fieldName)
|
Method Summary | |
---|---|
byte |
byteValue(int docId)
Returns the value of the specified number as a byte . |
Doc |
docFieldData(int docId)
|
abstract double |
doubleValue(int docId)
Returns the value of the specified number as a double . |
abstract double[] |
doubleValues(int docId)
|
abstract float |
floatValue(int docId)
Returns the value of the specified number as a float . |
abstract void |
forEachValueInDoc(int docId,
NumericFieldData.DoubleValueInDocProc proc)
|
abstract void |
forEachValueInDoc(int docId,
NumericFieldData.LongValueInDocProc proc)
|
abstract void |
forEachValueInDoc(int docId,
NumericFieldData.MissingDoubleValueInDocProc proc)
|
abstract void |
forEachValueInDoc(int docId,
NumericFieldData.MissingLongValueInDocProc proc)
|
abstract int |
intValue(int docId)
Returns the value of the specified number as an int . |
abstract long |
longValue(int docId)
Returns the value of the specified number as a long . |
short |
shortValue(int docId)
Returns the value of the specified number as a short . |
Methods inherited from class org.elasticsearch.index.field.data.FieldData |
---|
computeSizeInBytes, createFieldData, fieldName, forEachOrdinalInDoc, forEachValue, forEachValueInDoc, hasValue, load, multiValued, sizeInBytes, stringValue, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NumericFieldData(String fieldName)
Method Detail |
---|
public abstract int intValue(int docId)
int
.
This may involve rounding or truncation.
int
.public abstract long longValue(int docId)
long
.
This may involve rounding or truncation.
long
.public abstract float floatValue(int docId)
float
.
This may involve rounding.
float
.public abstract double doubleValue(int docId)
double
.
This may involve rounding.
double
.public byte byteValue(int docId)
byte
.
This may involve rounding or truncation.
byte
.public short shortValue(int docId)
short
.
This may involve rounding or truncation.
short
.public Doc docFieldData(int docId)
docFieldData
in class FieldData<Doc extends NumericDocFieldData>
public abstract double[] doubleValues(int docId)
public abstract void forEachValueInDoc(int docId, NumericFieldData.DoubleValueInDocProc proc)
public abstract void forEachValueInDoc(int docId, NumericFieldData.MissingDoubleValueInDocProc proc)
public abstract void forEachValueInDoc(int docId, NumericFieldData.LongValueInDocProc proc)
public abstract void forEachValueInDoc(int docId, NumericFieldData.MissingLongValueInDocProc proc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |