public static class ValueFormatter.BooleanFormatter extends Object implements ValueFormatter
ValueFormatter.BooleanFormatter, ValueFormatter.DateTime, ValueFormatter.GeoHash, ValueFormatter.IPv4Formatter, ValueFormatter.Number, ValueFormatter.RawBOOLEAN, GEOHASH, IPv4, RAW| Constructor and Description |
|---|
ValueFormatter.BooleanFormatter() |
| 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()
ValueFormatterid in interface ValueFormatterpublic String format(long value)
ValueFormatterformat in interface ValueFormattervalue - The long value to format.public String format(double value)
format in interface ValueFormattervalue - double The double value to format.public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.