Serializable
, PathPolicy
public class DefaultPathPolicy extends Object implements PathPolicy
PathPolicy
.Constructor | Description |
---|---|
DefaultPathPolicy() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
shouldAdd(CategoryPath categoryPath) |
Filters out (returns false) CategoryPaths equal or less than
TaxonomyReader.ROOT_ORDINAL . |
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.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.