public class StaticFieldIndexer extends Object implements IndexingFilter
X_POINT_ID
Constructor and Description |
---|
StaticFieldIndexer() |
Modifier and Type | Method and Description |
---|---|
NutchDocument |
filter(NutchDocument doc,
Parse parse,
org.apache.hadoop.io.Text url,
CrawlDatum datum,
Inlinks inlinks)
The
StaticFieldIndexer filter object which adds fields as per
configuration setting. |
org.apache.hadoop.conf.Configuration |
getConf()
Get the
Configuration object |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
Set the
Configuration object |
public NutchDocument filter(NutchDocument doc, Parse parse, org.apache.hadoop.io.Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException
StaticFieldIndexer
filter object which adds fields as per
configuration setting. See index.static
in nutch-default.xml.filter
in interface IndexingFilter
doc
- The NutchDocument
objectparse
- The relevant Parse
object passing through the filterurl
- URL to be filtered for anchor textdatum
- The CrawlDatum
entryinlinks
- The Inlinks
containing anchor textIndexingException
public void setConf(org.apache.hadoop.conf.Configuration conf)
Configuration
objectsetConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
Configuration
objectgetConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2014 The Apache Software Foundation