public class SubcollectionIndexingFilter extends org.apache.hadoop.conf.Configured implements IndexingFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
fieldName
Doc field name
|
static org.slf4j.Logger |
LOG
Logger
|
X_POINT_ID| Constructor and Description |
|---|
SubcollectionIndexingFilter() |
SubcollectionIndexingFilter(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
NutchDocument |
filter(NutchDocument doc,
Parse parse,
org.apache.hadoop.io.Text url,
CrawlDatum datum,
Inlinks inlinks)
Adds fields or otherwise modifies the document that will be indexed for a
parse.
|
org.apache.hadoop.conf.Configuration |
getConf() |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static String fieldName
public static final org.slf4j.Logger LOG
public SubcollectionIndexingFilter()
public SubcollectionIndexingFilter(org.apache.hadoop.conf.Configuration conf)
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class org.apache.hadoop.conf.ConfiguredConfiguration - confpublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurablegetConf in class org.apache.hadoop.conf.Configuredpublic NutchDocument filter(NutchDocument doc, Parse parse, org.apache.hadoop.io.Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException
IndexingFilterfilter in interface IndexingFilterdoc - document instance for collecting fieldsparse - parse data instanceurl - page urldatum - crawl datum for the pageinlinks - page inlinksIndexingExceptionCopyright © 2014 The Apache Software Foundation