public abstract class ElasticsearchTemporalAccessorStringBridge<T extends TemporalAccessor> extends EncodingStringBridge<T> implements TwoWayStringBridge, IgnoreAnalyzerBridge
TemporalAccessor
to String
.Modifier and Type | Method and Description |
---|---|
protected abstract IllegalArgumentException |
createInvalidIndexNullAsException(String indexNullAs,
DateTimeException e) |
NumericFieldSettingsDescriptor.NumericEncodingType |
getEncodingType()
Define the numeric encoding to use for the brdige.
|
String |
objectToString(Object object)
Converts the object representation to a string.
|
protected T |
parseIndexNullAs(String indexNullAs)
Parse the 'indexNullAs' string to an indexable value.
|
Object |
stringToObject(String stringValue)
Convert the index string representation to an object.
|
createNullMarker
public String objectToString(Object object)
StringBridge
objectToString
in interface StringBridge
object
- The object to transform into a string representation.null
. It can be empty though.public Object stringToObject(String stringValue)
TwoWayStringBridge
stringToObject
in interface TwoWayStringBridge
stringValue
- The index value.Object
.public NumericFieldSettingsDescriptor.NumericEncodingType getEncodingType()
EncodingBridge
getEncodingType
in interface EncodingBridge
getEncodingType
in class EncodingStringBridge<T extends TemporalAccessor>
NumericFieldSettingsDescriptor.NumericEncodingType.UNKNOWN
if
this bridge does not use numeric encoding.protected T parseIndexNullAs(String indexNullAs) throws IllegalArgumentException
EncodingStringBridge
The required format does not have to be the same as the encoded format.
parseIndexNullAs
in class EncodingStringBridge<T extends TemporalAccessor>
IllegalArgumentException
- If the given string does not match the required format.protected abstract IllegalArgumentException createInvalidIndexNullAsException(String indexNullAs, DateTimeException e)
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved