Package org.dspace.browse
Class ItemCountDAOSolr
java.lang.Object
org.dspace.browse.ItemCountDAOSolr
- All Implemented Interfaces:
ItemCountDAO
Discovery (Solr) driver implementing ItemCountDAO interface to look up item
count information in communities and collections. Caching operations are
intentionally not implemented because Solr already is our cache.
- Author:
- Ivan Masár, Andrea Bollini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount(DSpaceObject dso) Get the count of the items in the given container.voidsetContext(Context context) Set the dspace context to use
-
Constructor Details
-
ItemCountDAOSolr
public ItemCountDAOSolr()
-
-
Method Details
-
setContext
Set the dspace context to use- Specified by:
setContextin interfaceItemCountDAO- Parameters:
context- DSpace Context- Throws:
ItemCountException- if count error
-
getCount
Get the count of the items in the given container.- Specified by:
getCountin interfaceItemCountDAO- Parameters:
dso- Dspace Context- Returns:
- count
- Throws:
ItemCountException- if count error
-