org.archive.wayback.resourcestore.indexer
Class WARCRecordToSearchResultAdapter

java.lang.Object
  extended by org.archive.wayback.resourcestore.indexer.WARCRecordToSearchResultAdapter
All Implemented Interfaces:
Adapter<org.archive.io.warc.WARCRecord,CaptureSearchResult>

public class WARCRecordToSearchResultAdapter
extends Object
implements Adapter<org.archive.io.warc.WARCRecord,CaptureSearchResult>

Adapts certain WARCRecords into SearchResults. DNS and response records are mostly straightforward, but SearchResult objects generated from revisit records contain lots of "placeholder" fields, which are expected to be understood by later processes traversing a stream of SearchResult objects. See org.archive.wayback.resourceindex.DeduplicateSearchResultAnnotationAdapter.

Version:
$Date: 2010-12-30 16:19:34 -0800 (Thu, 30 Dec 2010) $, $Revision: 3357 $
Author:
brad

Constructor Summary
WARCRecordToSearchResultAdapter()
           
 
Method Summary
 CaptureSearchResult adapt(org.archive.io.warc.WARCRecord rec)
          Transform one object into another
 HTTPRecordAnnotater getAnnotater()
           
 UrlCanonicalizer getCanonicalizer()
           
 boolean isProcessAll()
           
 void setAnnotater(HTTPRecordAnnotater annotater)
           
 void setCanonicalizer(UrlCanonicalizer canonicalizer)
           
 void setProcessAll(boolean processAll)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WARCRecordToSearchResultAdapter

public WARCRecordToSearchResultAdapter()
Method Detail

adapt

public CaptureSearchResult adapt(org.archive.io.warc.WARCRecord rec)
Description copied from interface: Adapter
Transform one object into another

Specified by:
adapt in interface Adapter<org.archive.io.warc.WARCRecord,CaptureSearchResult>
Returns:
new object that is adapted from the old

getCanonicalizer

public UrlCanonicalizer getCanonicalizer()

setCanonicalizer

public void setCanonicalizer(UrlCanonicalizer canonicalizer)

isProcessAll

public boolean isProcessAll()

setProcessAll

public void setProcessAll(boolean processAll)

getAnnotater

public HTTPRecordAnnotater getAnnotater()
Returns:
the annotater

setAnnotater

public void setAnnotater(HTTPRecordAnnotater annotater)
Parameters:
annotater - the annotater to set


Copyright © 2005-2011 Internet Archive. All Rights Reserved.