Class GroupFacetCollector.GroupedFacetResult
java.lang.Object
org.apache.lucene.search.grouping.GroupFacetCollector.GroupedFacetResult
- Enclosing class:
- GroupFacetCollector
The grouped facet result. Containing grouped facet entries, total count and total missing
count.
-
Constructor Summary
ConstructorDescriptionGroupedFacetResult
(int size, int minCount, boolean orderByCount, int totalCount, int totalMissingCount) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFacetCount
(BytesRef facetValue, int count) getFacetEntries
(int offset, int limit) Returns a list of facet entries to be rendered based on the specified offset and limit.int
Returns the sum of all facet entries counts.int
Returns the number of groups that didn't have a facet value.
-
Constructor Details
-
GroupedFacetResult
public GroupedFacetResult(int size, int minCount, boolean orderByCount, int totalCount, int totalMissingCount)
-
-
Method Details
-
addFacetCount
-
getFacetEntries
Returns a list of facet entries to be rendered based on the specified offset and limit. The facet entries are retrieved from the facet entries collected during merging.- Parameters:
offset
- The offset in the collected facet entries during merginglimit
- The number of facets to return starting from the offset.- Returns:
- a list of facet entries to be rendered based on the specified offset and limit
-
getTotalCount
public int getTotalCount()Returns the sum of all facet entries counts.- Returns:
- the sum of all facet entries counts
-
getTotalMissingCount
public int getTotalMissingCount()Returns the number of groups that didn't have a facet value.- Returns:
- the number of groups that didn't have a facet value
-