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