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