public class DoubleType extends DataType<java.lang.Double> implements FixedWidthType, Streamer<java.lang.Double>, DataTypeFactory
Modifier and Type | Field and Description |
---|---|
static int |
ID |
static DoubleType |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
compareValueTo(java.lang.Double val1,
java.lang.Double val2) |
DataType<?> |
create() |
int |
fixedSize()
The fixed amount of memory a value object instance of type t requires.
|
java.lang.String |
getName() |
int |
id() |
java.lang.Double |
readValueFrom(org.elasticsearch.common.io.stream.StreamInput in) |
Streamer<?> |
streamer() |
java.lang.Double |
value(java.lang.Object value) |
void |
writeValueTo(org.elasticsearch.common.io.stream.StreamOutput out,
java.lang.Object v) |
public static final DoubleType INSTANCE
public static final int ID
public java.lang.Double value(java.lang.Object value)
public int compareValueTo(java.lang.Double val1, java.lang.Double val2)
compareValueTo
in class DataType<java.lang.Double>
public java.lang.Double readValueFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readValueFrom
in interface Streamer<java.lang.Double>
java.io.IOException
public void writeValueTo(org.elasticsearch.common.io.stream.StreamOutput out, java.lang.Object v) throws java.io.IOException
writeValueTo
in interface Streamer<java.lang.Double>
java.io.IOException
public DataType<?> create()
create
in interface DataTypeFactory
public int fixedSize()
FixedWidthType
fixedSize
in interface FixedWidthType