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 of SolrDocuments
      java.util.List<T> loadModels​(java.util.Collection<org.apache.solr.common.SolrDocument> documents)
      Retrieves information on models that are contained within the collection of SolrDocuments
    • 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 of SolrDocuments
        Throws:
        ModelLoadingException
      • loadCodes

        java.util.List<java.lang.String> loadCodes​(java.util.Collection<org.apache.solr.common.SolrDocument> documents)
                                            throws ModelLoadingException
        Retrieves codes of items contained within the collection of SolrDocuments
        Parameters:
        documents -
        Returns:
        Codes of items as Strings
        Throws:
        ModelLoadingException