public class RegexCopyFilter extends CopyFilter
| Modifier | Constructor and Description |
|---|---|
protected |
RegexCopyFilter(String filtersFilename)
Constructor, sets up a File object to read filter patterns from and
the List to store the patterns.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Loads a list of filter patterns for use in shouldCopy.
|
protected void |
setFilters(List<Pattern> filtersList)
Sets the list of filters to exclude files from copy.
|
boolean |
shouldCopy(org.apache.hadoop.fs.Path path)
Predicate to determine if a file can be excluded from copy.
|
getCopyFilterprotected RegexCopyFilter(String filtersFilename)
public void initialize()
initialize in class CopyFilterprotected final void setFilters(List<Pattern> filtersList)
filtersList - a list of Patterns to be excludedpublic boolean shouldCopy(org.apache.hadoop.fs.Path path)
CopyFiltershouldCopy in class CopyFilterpath - a Path to be considered for copyingCopyright © 2008–2020 Apache Software Foundation. All rights reserved.