org.apache.nutch.segment
Class SegmentMergeFilters

java.lang.Object
  extended by org.apache.nutch.segment.SegmentMergeFilters

public class SegmentMergeFilters
extends Object

This class wraps all SegmentMergeFilter extensions in a single object so it is easier to operate on them. If any of extensions returns false this one will return false as well.


Constructor Summary
SegmentMergeFilters(Configuration conf)
           
 
Method Summary
 boolean filter(WritableComparable key, CrawlDatum generateData, CrawlDatum fetchData, CrawlDatum sigData, Content content, ParseData parseData, ParseText parseText, Collection<CrawlDatum> linked)
          Iterates over all SegmentMergeFilter extensions and if any of them returns false, it will return false as well.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentMergeFilters

public SegmentMergeFilters(Configuration conf)
Method Detail

filter

public boolean filter(WritableComparable key,
                      CrawlDatum generateData,
                      CrawlDatum fetchData,
                      CrawlDatum sigData,
                      Content content,
                      ParseData parseData,
                      ParseText parseText,
                      Collection<CrawlDatum> linked)
Iterates over all SegmentMergeFilter extensions and if any of them returns false, it will return false as well.

Returns:
true values for this key (URL) should be merged into the new segment.


Copyright © 2006 The Apache Software Foundation