Class PrefixURLFilter
java.lang.Object
org.apache.nutch.urlfilter.prefix.PrefixURLFilter
- All Implemented Interfaces:
Configurable,URLFilter,Pluggable
Filters URLs based on a file of URL prefixes. The file is named by (1)
property "urlfilter.prefix.file" in ./conf/nutch-default.xml, or (2)
the attribute "file" in plugin.xml of this plugin.
The format of this file is one URL prefix per line.
-
Field Summary
Fields inherited from interface org.apache.nutch.net.URLFilter
X_POINT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInterface for a filter that transforms a URL: it can pass the original URL through or "delete" the URL by returning nullgetConf()static voidvoidsetConf(Configuration conf)
-
Constructor Details
-
PrefixURLFilter
- Throws:
IOException
-
PrefixURLFilter
- Throws:
IOException
-
-
Method Details
-
filter
Description copied from interface:URLFilterInterface for a filter that transforms a URL: it can pass the original URL through or "delete" the URL by returning null -
main
- Throws:
IOException
-
setConf
- Specified by:
setConfin interfaceConfigurable
-
getConf
- Specified by:
getConfin interfaceConfigurable
-