Interface SolrConverter

All Superinterfaces:
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>
All Known Implementing Classes:
MappingSolrConverter, SolrConverterBase, SolrJConverter

public interface SolrConverter extends org.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,org.apache.solr.common.SolrDocumentBase>, org.springframework.data.convert.EntityWriter<Object,org.apache.solr.common.SolrDocumentBase>, org.springframework.data.convert.EntityReader<Object,org.apache.solr.common.SolrDocumentBase>
  • Method Summary

    Modifier and Type
    Method
    Description
    <S, R> List<R>
    read(org.apache.solr.common.SolrDocumentList source, Class<R> type)
    Read SolrDocumentList and convert to List of given type
    Iterable<org.apache.solr.common.SolrInputDocument>
    write(Iterable<?> values)
    Write values to List of SolrInputDocument

    Methods inherited from interface org.springframework.data.convert.EntityConverter

    getConversionService, getMappingContext

    Methods inherited from interface org.springframework.data.convert.EntityReader

    read

    Methods inherited from interface org.springframework.data.convert.EntityWriter

    write
  • Method Details

    • read

      <S, R> List<R> read(@Nullable org.apache.solr.common.SolrDocumentList source, Class<R> type)
      Read SolrDocumentList and convert to List of given type
      Parameters:
      source -
      type -
      Returns:
      empty list if source == null || source.isEmpty()
    • write

      Iterable<org.apache.solr.common.SolrInputDocument> write(Iterable<?> values)
      Write values to List of SolrInputDocument
      Parameters:
      values -
      Returns:
      empty list if values is null-