public class ElasticsearchBooleanBridge extends Object implements EncodingBridge, TwoWayStringBridge, IgnoreAnalyzerBridge
String.
Behaves the same as Lucene's BooleanBridge, except the format of indexNullAs strings is checked, so one cannot use a random string as null token.
| Modifier and Type | Field and Description |
|---|---|
static ElasticsearchBooleanBridge |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
NullMarker |
createNullMarker(String indexNullAs) |
NumericFieldSettingsDescriptor.NumericEncodingType |
getEncodingType() |
String |
objectToString(Object object) |
protected Boolean |
parseIndexNullAs(String indexNullAs) |
Boolean |
stringToObject(String stringValue) |
public static final ElasticsearchBooleanBridge INSTANCE
public Boolean stringToObject(String stringValue)
stringToObject in interface TwoWayStringBridgepublic String objectToString(Object object)
objectToString in interface StringBridgepublic NumericFieldSettingsDescriptor.NumericEncodingType getEncodingType()
getEncodingType in interface EncodingBridgeprotected Boolean parseIndexNullAs(String indexNullAs) throws IllegalArgumentException
IllegalArgumentExceptionpublic NullMarker createNullMarker(String indexNullAs) throws IllegalArgumentException
createNullMarker in interface EncodingBridgeIllegalArgumentExceptionCopyright © 2006–2017 Hibernate. All rights reserved.