Class AbstractSolrConverter<T>
java.lang.Object
de.hybris.platform.solrfacetsearch.search.AbstractSolrConverter<T>
- All Implemented Interfaces:
Converter<SolrResult,,T> org.springframework.core.convert.converter.Converter<SolrResult,T>
- Direct Known Subclasses:
DefaultSolrProductConverter
Defines common implementation of conversion from SolrResult to Data (DTO) object.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(SolrResult source) Converts the source object, creating a new instance of the destination typeprotected abstract TReturns empty template instance for the conversion targetprotected FieldNameTranslatorprotected <TYPE> TYPEgetValue(SolrResult solrResult, IndexedProperty property) Returns value of the indexed property from the SOLR search result byIndexedPropertyinstance.protected <TYPE> TYPEgetValue(SolrResult solrResult, String propertyName) Returns value of the indexed property from the SOLR search result by (not translated) name .voidsetFieldNameTranslator(FieldNameTranslator fieldNameTranslator) protected StringtranslateFieldName(SearchQuery searchQuery, IndexedProperty property) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convert, convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
AbstractSolrConverter
public AbstractSolrConverter()
-
-
Method Details
-
convert
Description copied from interface:ConverterConverts the source object, creating a new instance of the destination type- Specified by:
convertin interfaceConverter<SolrResult,T> - Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<SolrResult,T> - Parameters:
source- the source object- Returns:
- the converted object
-
createDataObject
Returns empty template instance for the conversion target -
getValue
Returns value of the indexed property from the SOLR search result by (not translated) name .- Parameters:
solrResult-SolrResultpropertyName- - non-translated property name
-
getValue
Returns value of the indexed property from the SOLR search result byIndexedPropertyinstance.- Parameters:
solrResult-SolrResultproperty- -IndexedProperty
-
translateFieldName
-
getFieldNameTranslator
-
setFieldNameTranslator
-