Package org.dspace.browse
Class ItemCountDAOSolr
- java.lang.Object
-
- org.dspace.browse.ItemCountDAOSolr
-
- All Implemented Interfaces:
ItemCountDAO
public class ItemCountDAOSolr extends Object implements 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected SearchServicesearchServiceSolr search service
-
Constructor Summary
Constructors Constructor Description ItemCountDAOSolr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount(Context context, DSpaceObject dso)Get the count of the items in the given container.
-
-
-
Field Detail
-
searchService
@Autowired protected SearchService searchService
Solr search service
-
-
Method Detail
-
getCount
public int getCount(Context context, DSpaceObject dso)
Get the count of the items in the given container.- Specified by:
getCountin interfaceItemCountDAO- Parameters:
context- DSpace contextdso- DspaceObject- Returns:
- count
-
-