Class DefaultPathPolicy
- java.lang.Object
-
- org.apache.lucene.facet.index.categorypolicy.DefaultPathPolicy
-
- All Implemented Interfaces:
Serializable,PathPolicy
public class DefaultPathPolicy extends Object implements PathPolicy
This class filters our the ROOT category path. For more information seePathPolicy.- See Also:
- Serialized Form
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description DefaultPathPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldAdd(CategoryPath categoryPath)Filters out (returns false) CategoryPaths equal or less thanTaxonomyReader.ROOT_ORDINAL.
-
-
-
Method Detail
-
shouldAdd
public boolean shouldAdd(CategoryPath categoryPath)
Filters out (returns false) CategoryPaths equal or less thanTaxonomyReader.ROOT_ORDINAL. true otherwise.- Specified by:
shouldAddin interfacePathPolicy- Parameters:
categoryPath- A given category path which is to be tested for stream addition.- Returns:
trueif the category path should be added.falseotherwise.
-
-