|
|||||||||
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
|
Nested classes/interfaces inherited from class org.elasticsearch.index.field.data.FieldData |
---|
FieldData.StringValueInDocProc, FieldData.StringValueProc |
Constructor Summary | |
---|---|
protected |
NumericFieldData(java.lang.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 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 |
---|
createFieldData, fieldName, forEachValue, forEachValueInDoc, hasValue, load, multiValued, stringValue, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NumericFieldData(java.lang.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |