Interface ElasticsearchTypeMapper
- All Superinterfaces:
TypeMapper<Map<String,
Object>>
- All Known Implementing Classes:
DefaultElasticsearchTypeMapper
Elasticsearch specific
TypeMapper
definition.- Since:
- 3.2
- Author:
- Christoph Strobl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
containsTypeInformation
(Map<String, Object> source) static ElasticsearchTypeMapper
create
(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) Creates a new defaultElasticsearchTypeMapper
.boolean
Returns whether the given key is the type key.Methods inherited from interface org.springframework.data.convert.TypeMapper
readType, readType, writeType, writeType
-
Field Details
-
DEFAULT_TYPE_KEY
- See Also:
-
-
Method Details
-
isTypeKey
Returns whether the given key is the type key.- Returns:
- true if given key is used as type hint key.
-
getTypeKey
- Returns:
- the type key.
- Since:
- 4.4
-
containsTypeInformation
-
create
static ElasticsearchTypeMapper create(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) Creates a new defaultElasticsearchTypeMapper
.- Parameters:
mappingContext
- the mapping context.- Returns:
- a new default
ElasticsearchTypeMapper
. - See Also:
-