public static class ValueFormatter.GeoHash extends java.lang.Object implements ValueFormatter
ValueFormatter.BooleanFormatter, ValueFormatter.DateTime, ValueFormatter.GeoHash, ValueFormatter.IPv4Formatter, ValueFormatter.Number, ValueFormatter.Raw
BOOLEAN, GEOHASH, IPv4, RAW
Constructor and Description |
---|
GeoHash() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(double value) |
java.lang.String |
format(long value)
Formats the given millis time value (since the epoch) to string.
|
byte |
id()
Uniquely identifies this formatter (used for efficient serialization)
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public byte id()
ValueFormatter
id
in interface ValueFormatter
public java.lang.String format(long value)
ValueFormatter
format
in interface ValueFormatter
value
- The long value to format.public java.lang.String format(double value)
format
in interface ValueFormatter
value
- double The double value to format.public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException