public static class DatasetScanFilter.Selector extends Object
Modifier and Type | Class and Description |
---|---|
class |
DatasetScanFilter.Selector.LastModifiedLimitFilter |
class |
DatasetScanFilter.Selector.RegExpMatchOnNameFilter |
class |
DatasetScanFilter.Selector.WildcardMatchOnNameFilter |
Constructor and Description |
---|
Selector(DatasetScanFilter 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 |
---|---|
DatasetScanFilter |
getFilter() |
boolean |
isApplicable(MFile 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(MFile dataset)
Determine if the given dataset matches this selector.
|
public Selector(DatasetScanFilter 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 DatasetScanFilter getFilter()
public boolean isApplyToAtomicDataset()
public boolean isApplyToCollectionDataset()
public boolean match(MFile dataset)
dataset
- the CrawlableDataset to test if this selector matches.public boolean isApplicable(MFile dataset)
dataset
- the CrawlableDataset to test if this selector applies.public boolean isIncluder()
public boolean isExcluder()
Copyright © 1999–2019 UCAR/Unidata. All rights reserved.