public abstract class SolrConverterBase extends Object implements SolrConverter, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
SolrConverterBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected boolean |
canConvert(Class<?> sourceType,
Class<?> targetType) |
protected <T> T |
convert(Object source,
Class<T> targetType)
Convert given object into target type
|
protected org.apache.solr.common.SolrInputDocument |
createAndWrite(Object source)
create a new
SolrInputDocument for given source and write values to it |
org.springframework.core.convert.support.GenericConversionService |
getConversionService() |
CustomConversions |
getCustomConversions() |
protected Class<?> |
getCustomWriteTargetType(Class<?> type)
get the target conversion type
|
protected boolean |
hasCustomReadTarget(Class<?> sourceType,
Class<?> targetType) |
protected boolean |
hasCustomWriteTarget(Class<?> sourceType) |
protected boolean |
hasCustomWriteTarget(Class<?> sourceType,
Class<?> targetType) |
protected boolean |
isSimpleType(Class<?> type) |
protected void |
registerCutomConverters(org.springframework.core.convert.support.GenericConversionService conversionService)
register
customConversions with conversionService |
void |
setCustomConversions(CustomConversions customConversions) |
Collection<org.apache.solr.common.SolrInputDocument> |
write(Iterable<?> source)
Write values to
List of SolrInputDocument |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic Collection<org.apache.solr.common.SolrInputDocument> write(Iterable<?> source)
SolrConverterList of SolrInputDocumentwrite in interface SolrConverternull-protected org.apache.solr.common.SolrInputDocument createAndWrite(Object source)
SolrInputDocument for given source and write values to itsource - public CustomConversions getCustomConversions()
protected boolean hasCustomReadTarget(Class<?> sourceType, Class<?> targetType)
sourceType - targetType - customConversionsprotected boolean hasCustomWriteTarget(Class<?> sourceType)
sourceType - customConversionsprotected boolean hasCustomWriteTarget(Class<?> sourceType, Class<?> targetType)
sourceType - targetType - customConversionsprotected boolean isSimpleType(Class<?> type)
type - customConversionsprotected Class<?> getCustomWriteTargetType(Class<?> type)
type - protected void registerCutomConverters(org.springframework.core.convert.support.GenericConversionService conversionService)
customConversions with conversionServiceconversionService - public void setCustomConversions(CustomConversions customConversions)
customConversions - public org.springframework.core.convert.support.GenericConversionService getConversionService()
getConversionService in interface org.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty,Object,Map<String,?>>protected boolean canConvert(Class<?> sourceType, Class<?> targetType)
sourceType - targetType - protected <T> T convert(Object source, Class<T> targetType)
source - targetType - public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.