public static class AbstractGroupFacetCollector.GroupedFacetResult extends Object
Constructor and Description |
---|
AbstractGroupFacetCollector.GroupedFacetResult(int size,
int minCount,
boolean orderByCount,
int totalCount,
int totalMissingCount) |
Modifier and Type | Method and Description |
---|---|
void |
addFacetCount(BytesRef facetValue,
int count) |
List<AbstractGroupFacetCollector.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.
|
public AbstractGroupFacetCollector.GroupedFacetResult(int size, int minCount, boolean orderByCount, int totalCount, int totalMissingCount)
public void addFacetCount(BytesRef facetValue, int count)
public List<AbstractGroupFacetCollector.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()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.