public static class ValueFormatter.DateTime extends Object implements ValueFormatter
ValueFormatter.BooleanFormatter, ValueFormatter.DateTime, ValueFormatter.GeoHash, ValueFormatter.IPv4Formatter, ValueFormatter.Number, ValueFormatter.Raw| 修飾子とタイプ | フィールドと説明 |
|---|---|
static ValueFormatter |
DEFAULT |
BOOLEAN, GEOHASH, IPv4, RAW| コンストラクタと説明 |
|---|
DateTime(FormatDateTimeFormatter formatter) |
DateTime(FormatDateTimeFormatter formatter,
org.joda.time.DateTimeZone timezone) |
DateTime(String format) |
DateTime(String format,
org.joda.time.DateTimeZone timezone) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
String |
format(double value) |
String |
format(long time)
Formats the given millis time value (since the epoch) to string.
|
byte |
id()
Uniquely identifies this formatter (used for efficient serialization)
|
static ValueFormatter.DateTime |
mapper(DateFieldMapper.DateFieldType fieldType,
org.joda.time.DateTimeZone timezone) |
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
public static final ValueFormatter DEFAULT
public DateTime(String format)
public DateTime(FormatDateTimeFormatter formatter)
public DateTime(String format, org.joda.time.DateTimeZone timezone)
public DateTime(FormatDateTimeFormatter formatter, org.joda.time.DateTimeZone timezone)
public static ValueFormatter.DateTime mapper(DateFieldMapper.DateFieldType fieldType, org.joda.time.DateTimeZone timezone)
public String format(long time)
ValueFormatterformat インタフェース内 ValueFormattertime - The long value to format.public String format(double value)
format インタフェース内 ValueFormattervalue - double The double value to format.public byte id()
ValueFormatterid インタフェース内 ValueFormatterpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionCopyright © 2009–2016. All rights reserved.