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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>loadCodes(java.util.Collection<org.apache.solr.common.SolrDocument> documents)Retrieves codes of items contained within the collection ofSolrDocumentsjava.util.List<T>loadModels(java.util.Collection<org.apache.solr.common.SolrDocument> documents)Retrieves information on models that are contained within the collection ofSolrDocuments
-
-
-
Method Detail
-
loadModels
java.util.List<T> loadModels(java.util.Collection<org.apache.solr.common.SolrDocument> documents) throws ModelLoadingException
Retrieves information on models that are contained within the collection ofSolrDocuments- Throws:
ModelLoadingException
-
loadCodes
java.util.List<java.lang.String> loadCodes(java.util.Collection<org.apache.solr.common.SolrDocument> documents) throws ModelLoadingExceptionRetrieves codes of items contained within the collection ofSolrDocuments- Parameters:
documents-- Returns:
- Codes of items as Strings
- Throws:
ModelLoadingException
-
-