Class HvlLogSearchElasticsearchConverter
java.lang.Object
tr.com.havelsan.javarch.log.search.starter.elasticsearch.converter.HvlLogSearchElasticsearchConverter
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.data.convert.EntityConverter<org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>,
,org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty, Object, org.springframework.data.elasticsearch.core.document.Document> org.springframework.data.convert.EntityReader<Object,
,org.springframework.data.elasticsearch.core.document.Document> org.springframework.data.convert.EntityWriter<Object,
,org.springframework.data.elasticsearch.core.document.Document> org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter
public class HvlLogSearchElasticsearchConverter
extends Object
implements org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
The mapper is used for mapping ElasticSearch Documents
-
Constructor Summary
ConstructorDescriptionHvlLogSearchElasticsearchConverter
(org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>, org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty> mappingContext) Instantiates a new Hvl log search elasticsearch converter.HvlLogSearchElasticsearchConverter
(org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>, org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty> mappingContext, org.springframework.core.convert.support.GenericConversionService conversionService) Instantiates a new Hvl log search elasticsearch converter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.core.convert.ConversionService
org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>,
org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty> <R> R
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setConversions
(org.springframework.data.convert.CustomConversions conversions) Set theCustomConversions
to be applied during the mapping process.void
updateQuery
(org.springframework.data.elasticsearch.core.query.Query query, Class<?> domainClass) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter
convertId, getProjectionFactory, mapObject
-
Constructor Details
-
HvlLogSearchElasticsearchConverter
public HvlLogSearchElasticsearchConverter(org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>, org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty> mappingContext) Instantiates a new Hvl log search elasticsearch converter.- Parameters:
mappingContext
- the mapping context
-
HvlLogSearchElasticsearchConverter
public HvlLogSearchElasticsearchConverter(org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>, org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty> mappingContext, @Nullable org.springframework.core.convert.support.GenericConversionService conversionService) Instantiates a new Hvl log search elasticsearch converter.- Parameters:
mappingContext
- the mapping contextconversionService
- the conversion service
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getMappingContext
public org.springframework.data.mapping.context.MappingContext<? extends org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>,org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty> getMappingContext()- Specified by:
getMappingContext
in interfaceorg.springframework.data.convert.EntityConverter<org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>,
org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty, Object, org.springframework.data.elasticsearch.core.document.Document>
-
getConversionService
public org.springframework.core.convert.ConversionService getConversionService()- Specified by:
getConversionService
in interfaceorg.springframework.data.convert.EntityConverter<org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity<?>,
org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty, Object, org.springframework.data.elasticsearch.core.document.Document>
-
setConversions
public void setConversions(org.springframework.data.convert.CustomConversions conversions) Set theCustomConversions
to be applied during the mapping process.
Conversions are registered afterbean initialization
.- Parameters:
conversions
- must not be null.
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
read
public <R> R read(Class<R> type, org.springframework.data.elasticsearch.core.document.Document source) - Specified by:
read
in interfaceorg.springframework.data.convert.EntityReader<Object,
org.springframework.data.elasticsearch.core.document.Document>
-
write
public void write(Object source, org.springframework.data.elasticsearch.core.document.Document sink) - Specified by:
write
in interfaceorg.springframework.data.convert.EntityWriter<Object,
org.springframework.data.elasticsearch.core.document.Document>
-
updateQuery
public void updateQuery(org.springframework.data.elasticsearch.core.query.Query query, @Nullable Class<?> domainClass) - Specified by:
updateQuery
in interfaceorg.springframework.data.elasticsearch.core.convert.ElasticsearchConverter
-