public class CCIndexingFilter extends Object implements IndexingFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD
The name of the document field we use.
|
static org.slf4j.Logger |
LOG |
X_POINT_ID| Constructor and Description |
|---|
CCIndexingFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUrlFeatures(NutchDocument doc,
String urlString)
Add the features represented by a license URL.
|
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 final org.slf4j.Logger LOG
public static String FIELD
public 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 inlinksIndexingExceptionpublic void addUrlFeatures(NutchDocument doc, String urlString)
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2014 The Apache Software Foundation