public class MappingSolrConverter extends SolrConverterBase implements SolrConverter, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
MappingSolrConverter(org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> |
getMappingContext() |
protected Object |
getValue(SolrPersistentProperty property,
Object source,
Object parent) |
<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 |
protected <S> S |
read(org.springframework.data.util.TypeInformation<S> targetTypeInformation,
Map<String,?> source) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
write(Object source,
Map target) |
protected void |
write(Object source,
Map target,
SolrPersistentEntity<?> entity) |
afterPropertiesSet, canConvert, convert, createAndWrite, getConversionService, getCustomConversions, getCustomWriteTargetType, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, isSimpleType, registerCutomConverters, setCustomConversions, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic MappingSolrConverter(org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> mappingContext)
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)
SolrConverterSolrDocumentList and convert to List of given typeread in interface SolrConvertersource == null || source.isEmpty()protected <S> S read(org.springframework.data.util.TypeInformation<S> targetTypeInformation,
Map<String,?> source)
protected Object getValue(SolrPersistentProperty property, Object source, Object parent)
protected void write(Object source, Map target, SolrPersistentEntity<?> entity)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.