Package org.mycore.oai
Class MCROAISolrResult
java.lang.Object
org.mycore.oai.MCROAISolrResult
- All Implemented Interfaces:
MCROAIResult
Solr implementation of a MCROAIResult.
- Author:
- Matthias Eichner
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.solr.client.solrj.response.QueryResponse
-
Constructor Summary
ConstructorDescriptionMCROAISolrResult
(org.apache.solr.client.solrj.response.QueryResponse response, Function<org.apache.solr.common.SolrDocument, org.mycore.oai.pmh.Header> toHeader) -
Method Summary
-
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 interfaceMCROAIResult
- Returns:
- number of hits
-
list
Description copied from interface:MCROAIResult
Returns a list of mycore object identifiers.- Specified by:
list
in interfaceMCROAIResult
- Returns:
- list of mycore object identifiers
-
nextCursor
- Specified by:
nextCursor
in interfaceMCROAIResult
- Returns:
- the next cursor
-
getResponse
public org.apache.solr.client.solrj.response.QueryResponse getResponse()
-