public static class ValueFormatter.GeoHash extends Object implements ValueFormatter
ValueFormatter.BooleanFormatter, ValueFormatter.DateTime, ValueFormatter.GeoHash, ValueFormatter.IPv4Formatter, ValueFormatter.Number, ValueFormatter.Raw
BOOLEAN, GEOHASH, IPv4, RAW
Constructor and Description |
---|
ValueFormatter.GeoHash() |
Modifier and Type | Method and Description |
---|---|
String |
format(double value) |
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) |
void |
writeTo(StreamOutput out) |
public byte id()
ValueFormatter
id
in interface ValueFormatter
public String format(long value)
ValueFormatter
format
in interface ValueFormatter
value
- The long value to format.public String format(double value)
format
in interface ValueFormatter
value
- double The double value to format.public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2017. All rights reserved.