Class SolrJConverter

java.lang.Object
org.springframework.data.solr.core.convert.SolrConverterBase
org.springframework.data.solr.core.convert.SolrJConverter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,org.apache.solr.common.SolrDocumentBase>, org.springframework.data.convert.EntityReader<Object,org.apache.solr.common.SolrDocumentBase>, org.springframework.data.convert.EntityWriter<Object,org.apache.solr.common.SolrDocumentBase>, SolrConverter

public class SolrJConverter extends SolrConverterBase implements SolrConverter
Trivial implementation of SolrConverter delegating conversion to DocumentObjectBinder
  • Constructor Details

    • SolrJConverter

      public SolrJConverter()
  • Method Details

    • getMappingContext

      public org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> getMappingContext()
      Specified by:
      getMappingContext in interface org.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,org.apache.solr.common.SolrDocumentBase>
    • read

      public <S, R> List<R> read(@Nullable org.apache.solr.common.SolrDocumentList source, Class<R> type)
      Description copied from interface: SolrConverter
      Read SolrDocumentList and convert to List of given type
      Specified by:
      read in interface SolrConverter
      Returns:
      empty list if source == null || source.isEmpty()
    • read

      public <R> R read(Class<R> type, org.apache.solr.common.SolrDocumentBase source)
      Specified by:
      read in interface org.springframework.data.convert.EntityReader<Object,org.apache.solr.common.SolrDocumentBase>
    • write

      public void write(@Nullable Object source, org.apache.solr.common.SolrDocumentBase sink)
      Specified by:
      write in interface org.springframework.data.convert.EntityWriter<Object,org.apache.solr.common.SolrDocumentBase>