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

    Constructors
    Constructor
    Description
    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.
    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 Type
    Method
    Description
    void
     
    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
    read(Class<R> type, org.springframework.data.elasticsearch.core.document.Document source)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    void
    setConversions(org.springframework.data.convert.CustomConversions conversions)
    Set the CustomConversions to be applied during the mapping process.
    void
    updateQuery(org.springframework.data.elasticsearch.core.query.Query query, Class<?> domainClass)
     
    void
    write(Object source, org.springframework.data.elasticsearch.core.document.Document sink)
     

    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 context
      conversionService - the conversion service
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.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 interface 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>
    • getConversionService

      public org.springframework.core.convert.ConversionService getConversionService()
      Specified by:
      getConversionService in interface 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>
    • setConversions

      public void setConversions(org.springframework.data.convert.CustomConversions conversions)
      Set the CustomConversions to be applied during the mapping process.
      Conversions are registered after bean initialization.
      Parameters:
      conversions - must not be null.
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • read

      public <R> R read(Class<R> type, org.springframework.data.elasticsearch.core.document.Document source)
      Specified by:
      read in interface org.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 interface org.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 interface org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter