Spring Data Solr

org.springframework.data.solr.core.convert
Interface SolrConverter

All Superinterfaces:
EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,Map<String,?>>, EntityReader<Object,Map<String,?>>, EntityWriter<Object,Map<String,?>>
All Known Implementing Classes:
MappingSolrConverter, SolrConverterBase, SolrJConverter

public interface SolrConverter
extends EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,Map<String,?>>, EntityWriter<Object,Map<String,?>>, EntityReader<Object,Map<String,?>>

Author:
Christoph Strobl

Method Summary
<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 Detail

read

<S,R> List<R> read(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-

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.