Class PropertyFacetExtractor
- java.lang.Object
-
- com.day.cq.search.facets.extractors.PropertyFacetExtractor
-
- All Implemented Interfaces:
FacetExtractor
- Direct Known Subclasses:
DistinctValuesFacetExtractor
,PredefinedBucketsFacetExtractor
public abstract class PropertyFacetExtractor extends java.lang.Object implements FacetExtractor
PropertyFacetExtractor
is a base class for facet extractors that work on a certain property (incl. relative paths to properties in sub-nodes), specified by the parameterpropertyRelPath
in the constructor. In addition, subclasses can implementfilter(List, ValueFactory)
for further filtering of the list of values.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description PropertyFacetExtractor(java.lang.String propertyRelPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleNode(Node node)
Called for each node of the result set.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.day.cq.search.facets.FacetExtractor
getFacet
-
-
-
-
Method Detail
-
handleNode
public void handleNode(Node node) throws RepositoryException
Description copied from interface:FacetExtractor
Called for each node of the result set.- Specified by:
handleNode
in interfaceFacetExtractor
- Parameters:
node
- node in the result- Throws:
RepositoryException
- if access to the node failed, ie. one of the methods on node threw an exception
-
-