public class SolrJConverter extends SolrConverterBase implements SolrConverter
SolrConverter
delegating conversion to DocumentObjectBinder
Constructor and Description |
---|
SolrJConverter() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> |
getMappingContext() |
<R> R |
read(Class<R> type,
Map<String,?> source) |
<S,R> List<R> |
read(org.apache.solr.common.SolrDocumentList source,
Class<R> type)
Read
SolrDocumentList and convert to List of given type |
void |
write(Object source,
Map sink) |
afterPropertiesSet, canConvert, convert, createAndWrite, getConversionService, getCustomConversions, getCustomWriteTargetType, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, isSimpleType, registerCutomConverters, setCustomConversions, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> getMappingContext()
getMappingContext
in interface org.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,Map<String,?>>
public <S,R> List<R> read(org.apache.solr.common.SolrDocumentList source, Class<R> type)
SolrConverter
SolrDocumentList
and convert to List
of given typeread
in interface SolrConverter
source == null || source.isEmpty()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.