public static class GroupFacetCollector.GroupedFacetResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
currentMin |
private java.util.NavigableSet<GroupFacetCollector.FacetEntry> |
facetEntries |
private int |
maxSize |
private static java.util.Comparator<GroupFacetCollector.FacetEntry> |
orderByCountAndValue |
private static java.util.Comparator<GroupFacetCollector.FacetEntry> |
orderByValue |
private int |
totalCount |
private int |
totalMissingCount |
Constructor and Description |
---|
GroupedFacetResult(int size,
int minCount,
boolean orderByCount,
int totalCount,
int totalMissingCount) |
Modifier and Type | Method and Description |
---|---|
void |
addFacetCount(BytesRef facetValue,
int count) |
java.util.List<GroupFacetCollector.FacetEntry> |
getFacetEntries(int offset,
int limit)
Returns a list of facet entries to be rendered based on the specified offset and limit.
|
int |
getTotalCount()
Returns the sum of all facet entries counts.
|
int |
getTotalMissingCount()
Returns the number of groups that didn't have a facet value.
|
private static final java.util.Comparator<GroupFacetCollector.FacetEntry> orderByCountAndValue
private static final java.util.Comparator<GroupFacetCollector.FacetEntry> orderByValue
private final int maxSize
private final java.util.NavigableSet<GroupFacetCollector.FacetEntry> facetEntries
private final int totalMissingCount
private final int totalCount
private int currentMin
public GroupedFacetResult(int size, int minCount, boolean orderByCount, int totalCount, int totalMissingCount)
public void addFacetCount(BytesRef facetValue, int count)
public java.util.List<GroupFacetCollector.FacetEntry> getFacetEntries(int offset, int limit)
offset
- The offset in the collected facet entries during merginglimit
- The number of facets to return starting from the offset.public int getTotalCount()
public int getTotalMissingCount()