org.archive.wayback.resourceindex.filters
Class WARCRevisitAnnotationFilter
java.lang.Object
org.archive.wayback.resourceindex.filters.WARCRevisitAnnotationFilter
- All Implemented Interfaces:
- ObjectFilter<CaptureSearchResult>
public class WARCRevisitAnnotationFilter
- extends Object
- implements ObjectFilter<CaptureSearchResult>
Filter class that observes a stream of SearchResults tracking for each
complete record, a mapping of that records Digest to:
Arc/Warc Filename
Arc/Warc offset
HTTP Response
MIME-Type
Redirect URL
If subsequent SearchResults are missing these fields ("-") and the Digest
field is in the map, then the SearchResults missing fields are replaced with
the values from the previously seen record with the same digest, and an
additional annotation field is added.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
|
Method Summary |
int |
filterObject(CaptureSearchResult o)
inpect record and determine if it should be included in the
results or not, or if processing of new records should stop. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WARCRevisitAnnotationFilter
public WARCRevisitAnnotationFilter()
filterObject
public int filterObject(CaptureSearchResult o)
- Description copied from interface:
ObjectFilter
- inpect record and determine if it should be included in the
results or not, or if processing of new records should stop.
- Specified by:
filterObject in interface ObjectFilter<CaptureSearchResult>
- Parameters:
o - Object which should be checked for inclusion/exclusion or abort
- Returns:
- int of FILTER_INCLUDE, FILTER_EXCLUDE, or FILTER_ABORT
Copyright © 2005-2011 Internet Archive. All Rights Reserved.