org.archive.wayback.resourceindex.filters
Class WARCRevisitAnnotationFilter

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.archive.wayback.util.ObjectFilter
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
 
Constructor Summary
WARCRevisitAnnotationFilter()
           
 
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
 

Constructor Detail

WARCRevisitAnnotationFilter

public WARCRevisitAnnotationFilter()
Method Detail

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.