public class CountFacetCollector extends FacetCollector<Integer>
Constructor and Description |
---|
CountFacetCollector()
Default Constructor.
|
CountFacetCollector(Collection<VirtualProperty> properties)
Creates a new CountFacetCollector that collects facet data over the
supplied Properties.
|
Modifier and Type | Method and Description |
---|---|
void |
addFacetProperty(VirtualProperty property)
Add a property over which facets are collected.
|
Set<Map.Entry<String,Integer>> |
getFacets(VirtualProperty property)
Returns all facets for the given property.
|
Integer |
getFacetValue(VirtualProperty property,
String facet)
Returns a facet value.
|
Collection<VirtualProperty> |
getProperties()
Returns the properties for which facets are collected..
|
public CountFacetCollector(Collection<VirtualProperty> properties)
properties
- VirtualProperties over which facet data is collected.public CountFacetCollector()
public void addFacetProperty(VirtualProperty property)
FacetCollector
addFacetProperty
in class FacetCollector<Integer>
property
- A virtual property over which facets are collected.public Collection<VirtualProperty> getProperties()
FacetCollector
getProperties
in class FacetCollector<Integer>
public Set<Map.Entry<String,Integer>> getFacets(VirtualProperty property)
FacetCollector
getFacets
in class FacetCollector<Integer>
property
- the property.public Integer getFacetValue(VirtualProperty property, String facet)
FacetCollector
getFacetValue
in class FacetCollector<Integer>
property
- The property.facet
- The facet.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.