public class FacetedAttributeResult extends Object
Constructor and Description |
---|
FacetedAttributeResult(String attributeName,
List<org.apache.commons.lang3.tuple.Pair<String,Long>> valueCountPairs)
Instantiates a FacetedAttributeResult representing a portion of the results of a faceted query.
|
FacetedAttributeResult(String attributeName,
List<String> attributeValues,
List<Long> valueCounts)
Instantiates a FacetedAttributeResult representing a portion of the results of a faceted query.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName() |
List<FacetValueCount> |
getFacetValues() |
public FacetedAttributeResult(String attributeName, List<String> attributeValues, List<Long> valueCounts)
attributeName
- The attribute name for which faceting data is reportedattributeValues
- A list of the discovered facet valuesvalueCounts
- A list of the number of occurrences for each facet valuepublic FacetedAttributeResult(String attributeName, List<org.apache.commons.lang3.tuple.Pair<String,Long>> valueCountPairs)
attributeName
- The field name for which faceting data is reportedvalueCountPairs
- A list of value-count pairs for the faceted fieldpublic String getAttributeName()
public List<FacetValueCount> getFacetValues()
This work is licensed under a Creative Commons Attribution 4.0 International License.