public abstract class AbstractSolrConverter<T> extends java.lang.Object implements Converter<SolrResult,T>
SolrResult| Constructor and Description |
|---|
AbstractSolrConverter() |
| Modifier and Type | Method and Description |
|---|---|
T |
convert(SolrResult source)
Converts the source object, creating a new instance of the destination type
|
protected abstract T |
createDataObject()
Returns empty template instance for the conversion target
|
protected FieldNameTranslator |
getFieldNameTranslator() |
protected <TYPE> TYPE |
getValue(SolrResult solrResult,
IndexedProperty property)
Returns value of the indexed property from the SOLR search result by
IndexedProperty instance. |
protected <TYPE> TYPE |
getValue(SolrResult solrResult,
java.lang.String propertyName)
Returns value of the indexed property from the SOLR search result by (not translated) name .
|
void |
setFieldNameTranslator(FieldNameTranslator fieldNameTranslator) |
protected java.lang.String |
translateFieldName(SearchQuery searchQuery,
IndexedProperty property) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, convertAll, convertAllIgnoreExceptions, getLoggerpublic T convert(SolrResult source)
Converterconvert in interface Converter<SolrResult,T>source - the source objectprotected abstract T createDataObject()
protected <TYPE> TYPE getValue(SolrResult solrResult, java.lang.String propertyName)
solrResult - SolrResultpropertyName - - non-translated property nameprotected <TYPE> TYPE getValue(SolrResult solrResult, IndexedProperty property)
IndexedProperty instance.solrResult - SolrResultproperty - - IndexedPropertyprotected java.lang.String translateFieldName(SearchQuery searchQuery, IndexedProperty property)
protected FieldNameTranslator getFieldNameTranslator()
public void setFieldNameTranslator(FieldNameTranslator fieldNameTranslator)
Copyright © 2018 SAP SE. All Rights Reserved.