Interface ModelLoader<T>
- All Known Implementing Classes:
DefaultModelLoader
public interface ModelLoader<T>
Provides transition from SOLR understandable indexedItems format to predefined model types.
-
Method Summary
Modifier and TypeMethodDescriptionloadCodes(Collection<org.apache.solr.common.SolrDocument> documents) Retrieves codes of items contained within the collection ofSolrDocumentsloadModels(Collection<org.apache.solr.common.SolrDocument> documents) Retrieves information on models that are contained within the collection ofSolrDocuments
-
Method Details
-
loadModels
List<T> loadModels(Collection<org.apache.solr.common.SolrDocument> documents) throws ModelLoadingException Retrieves information on models that are contained within the collection ofSolrDocuments- Throws:
ModelLoadingException
-
loadCodes
List<String> loadCodes(Collection<org.apache.solr.common.SolrDocument> documents) throws ModelLoadingException Retrieves codes of items contained within the collection ofSolrDocuments- Parameters:
documents-- Returns:
- Codes of items as Strings
- Throws:
ModelLoadingException
-