public class MappingSolrConverter extends SolrConverterBase implements SolrConverter, ApplicationContextAware, InitializingBean
| Constructor and Description |
|---|
MappingSolrConverter(MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> |
getMappingContext() |
protected Object |
getValue(SolrPersistentProperty property,
Object source,
Object parent) |
<R> R |
read(Class<R> type,
org.apache.solr.common.SolrDocumentBase 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(TypeInformation<S> targetTypeInformation,
org.apache.solr.common.SolrDocumentBase source) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
write(Object source,
org.apache.solr.common.SolrDocumentBase target) |
protected void |
write(Object source,
org.apache.solr.common.SolrDocumentBase target,
SolrPersistentEntity<?> entity) |
afterPropertiesSet, canConvert, convert, createAndWrite, getConversionService, getCustomConversions, getCustomWriteTargetType, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, isSimpleType, registerCustomConverters, setCustomConversions, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritegetConversionServiceafterPropertiesSetpublic MappingSolrConverter(MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> mappingContext)
public MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> getMappingContext()
getMappingContext in interface EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,org.apache.solr.common.SolrDocumentBase>public <S,R> List<R> read(@Nullable org.apache.solr.common.SolrDocumentList source, Class<R> type)
SolrConverterSolrDocumentList and convert to List of given typeread in interface SolrConvertersource == null || source.isEmpty()public <R> R read(Class<R> type, org.apache.solr.common.SolrDocumentBase source)
read in interface EntityReader<Object,org.apache.solr.common.SolrDocumentBase>@Nullable protected <S> S read(TypeInformation<S> targetTypeInformation, @Nullable org.apache.solr.common.SolrDocumentBase source)
@Nullable protected Object getValue(SolrPersistentProperty property, Object source, Object parent)
public void write(Object source, org.apache.solr.common.SolrDocumentBase target)
write in interface EntityWriter<Object,org.apache.solr.common.SolrDocumentBase>protected void write(Object source, org.apache.solr.common.SolrDocumentBase target, SolrPersistentEntity<?> entity)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.