Class MCROAISolrResult

java.lang.Object
org.mycore.oai.MCROAISolrResult
All Implemented Interfaces:
MCROAIResult

public class MCROAISolrResult extends Object implements MCROAIResult
Solr implementation of a MCROAIResult.
Author:
Matthias Eichner
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.solr.client.solrj.response.QueryResponse
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MCROAISolrResult(org.apache.solr.client.solrj.response.QueryResponse response, Function<org.apache.solr.common.SolrDocument,org.mycore.oai.pmh.Header> toHeader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Number of all hits
    org.apache.solr.client.solrj.response.QueryResponse
     
    List<org.mycore.oai.pmh.Header>
    Returns a list of mycore object identifiers.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • response

      protected org.apache.solr.client.solrj.response.QueryResponse response
  • Constructor Details

    • MCROAISolrResult

      public MCROAISolrResult(org.apache.solr.client.solrj.response.QueryResponse response, Function<org.apache.solr.common.SolrDocument,org.mycore.oai.pmh.Header> toHeader)
  • Method Details

    • getNumHits

      public int getNumHits()
      Description copied from interface: MCROAIResult
      Number of all hits
      Specified by:
      getNumHits in interface MCROAIResult
      Returns:
      number of hits
    • list

      public List<org.mycore.oai.pmh.Header> list()
      Description copied from interface: MCROAIResult
      Returns a list of mycore object identifiers.
      Specified by:
      list in interface MCROAIResult
      Returns:
      list of mycore object identifiers
    • nextCursor

      public Optional<String> nextCursor()
      Specified by:
      nextCursor in interface MCROAIResult
      Returns:
      the next cursor
    • getResponse

      public org.apache.solr.client.solrj.response.QueryResponse getResponse()