Class MCROAISolrSetHandler

java.lang.Object
org.mycore.oai.set.MCROAISolrSetHandler
All Implemented Interfaces:
MCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,org.apache.solr.common.SolrDocument,String>
Direct Known Subclasses:
MCROAIClassificationToSetHandler, MCROAIQueryToSetHandler

public abstract class MCROAISolrSetHandler extends Object implements MCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,org.apache.solr.common.SolrDocument,String>
  • Constructor Details

    • MCROAISolrSetHandler

      public MCROAISolrSetHandler()
  • Method Details

    • init

      public void init(String configPrefix, String handlerPrefix)
      Description copied from interface: MCROAISetHandler
      Initializes the set handler with the configPrefix (MCR.OAIDataProvider.MY_PROVIDER) and a setId (MCR.OAIDataProvider.MY_PROVIDER.Sets.SET_ID).
      Specified by:
      init in interface MCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,org.apache.solr.common.SolrDocument,String>
      Parameters:
      configPrefix - the config prefix
      handlerPrefix - the set id without any prefix
    • getConfigPrefix

      public String getConfigPrefix()
    • getHandlerPrefix

      public String getHandlerPrefix()
    • getFieldNames

      public Collection<String> getFieldNames()
    • getSetResolver

      public MCROAISetResolver<String,org.apache.solr.common.SolrDocument> getSetResolver(Collection<org.apache.solr.common.SolrDocument> result)
      Specified by:
      getSetResolver in interface MCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,org.apache.solr.common.SolrDocument,String>
    • getIdentifier

      protected static String getIdentifier(org.apache.solr.common.SolrDocument doc)
    • getSetMap

      public Map<String,MCRSet> getSetMap()
      Specified by:
      getSetMap in interface MCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,org.apache.solr.common.SolrDocument,String>