public class ElasticsearchZonedDateTimeBridge extends ElasticsearchTemporalAccessorStringBridge<ZonedDateTime>
ZonedDateTime
to a String
in ISO-8601 extended format (9 digits for the year instead of 4).
Be aware that this format is not the same as DateTimeFormatter.ISO_ZONED_DATE_TIME
(mainly because of the second fraction field, which is at least 3 characters long), nor as Elasticsearch's
"strict_date_time" format (since years with more than 4 digits are allowed, and both the zone ID and offset are displayed).
Modifier and Type | Field and Description |
---|---|
static ElasticsearchZonedDateTimeBridge |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected IllegalArgumentException |
createInvalidIndexNullAsException(String indexNullAs,
DateTimeException e) |
getEncodingType, objectToString, parseIndexNullAs, stringToObject
createNullMarker
public static final ElasticsearchZonedDateTimeBridge INSTANCE
protected IllegalArgumentException createInvalidIndexNullAsException(String indexNullAs, DateTimeException e)
createInvalidIndexNullAsException
in class ElasticsearchTemporalAccessorStringBridge<ZonedDateTime>
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved