public class NonTopLevelPathPolicy extends Object implements PathPolicy
PathPolicy
.Modifier and Type | Field and Description |
---|---|
int |
DEFAULT_MINIMAL_SUBPATH_LENGTH
The shortest path length delivered is two components (root + one child).
|
Constructor and Description |
---|
NonTopLevelPathPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldAdd(CategoryPath categoryPath)
Filters out (returns false) CategoryPaths equal or less than
TaxonomyReader.ROOT_ORDINAL . true otherwise. |
public final int DEFAULT_MINIMAL_SUBPATH_LENGTH
public boolean shouldAdd(CategoryPath categoryPath)
TaxonomyReader.ROOT_ORDINAL
. true otherwise.shouldAdd
in interface PathPolicy
categoryPath
- A given category path which is to be tested for stream
addition.true
if the category path should be added.
false
otherwise.