Package io.goobi.viewer.model.search
Class CollectionResult
java.lang.Object
io.goobi.viewer.model.search.CollectionResult
- All Implemented Interfaces:
Serializable
Contains additional information of collections searched by
SearchHelper.findAllCollectionsFromField(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, java.lang.String).- Author:
- Florian Alpers
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionResult(String name) CollectionResult(String name, long recordCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFacetValues(Collection<Object> fieldValues) getCount()getName()voidincrementChildCount(long l) voidincrementCount(long l) voidsetChildCount(Long count) voidvoidsetFacetValues(Set<String> facetValues)
-
Constructor Details
-
CollectionResult
-
CollectionResult
- Parameters:
name- collection name (Solr field value)recordCount- number of records in this collection
-
-
Method Details
-
getFacetValues
-
setFacetValues
-
getCount
-
setCount
-
getName
-
incrementCount
public void incrementCount(long l) -
getChildCount
-
setChildCount
-
incrementChildCount
public void incrementChildCount(long l) -
addFacetValues
- Parameters:
fieldValues- collection of facet values to add to this result
-