public static class ValueFormatter.Raw extends Object implements ValueFormatter
ValueFormatter.BooleanFormatter, ValueFormatter.DateTime, ValueFormatter.GeoHash, ValueFormatter.IPv4Formatter, ValueFormatter.Number, ValueFormatter.Raw
BOOLEAN, GEOHASH, IPv4, RAW
Constructor and Description |
---|
Raw() |
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 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 byte id()
ValueFormatter
id
in interface ValueFormatter
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–2016. All rights reserved.