public static class MultiSelectorFilter.Selector extends Object
| Constructor and Description |
|---|
Selector(CrawlableDatasetFilter filter,
boolean includer,
boolean applyToAtomicDataset,
boolean applyToCollectionDataset)
Construct a Selector which uses the given CrawlableDatasetFilter to determine a dataset match.
|
| Modifier and Type | Method and Description |
|---|---|
CrawlableDatasetFilter |
getFilter() |
boolean |
isApplicable(CrawlableDataset dataset)
Test if this selector applies to the given dataset.
|
boolean |
isApplyToAtomicDataset() |
boolean |
isApplyToCollectionDataset() |
boolean |
isExcluder()
Return true if this selector is an exclusion rather than inclusion selector.
|
boolean |
isIncluder()
Return true if this selector is an inclusion rather than exclusion selector.
|
boolean |
match(CrawlableDataset dataset)
Determine if the given dataset matches this selector.
|
public Selector(CrawlableDatasetFilter filter, boolean includer, boolean applyToAtomicDataset, boolean applyToCollectionDataset)
filter - the filter used by this Selector to match against datasets.includer - if true, matching datasets will be included, otherwise they will be excluded.applyToAtomicDataset - if true, this selector applies to atomic datasets.applyToCollectionDataset - if true, this selector applies to collection datasets.public CrawlableDatasetFilter getFilter()
public boolean isApplyToAtomicDataset()
public boolean isApplyToCollectionDataset()
public boolean match(CrawlableDataset dataset)
dataset - the CrawlableDataset to test if this selector matches.public boolean isApplicable(CrawlableDataset dataset)
dataset - the CrawlableDataset to test if this selector applies.public boolean isIncluder()
public boolean isExcluder()