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 java.lang.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$, $Revision$
Author:
brad

Constructor Summary
WARCRecordToSearchResultAdapter()
           
 
Method Summary
 CaptureSearchResult adapt(org.archive.io.warc.WARCRecord rec)
          Transform one object into another
 UrlCanonicalizer getCanonicalizer()
           
 boolean isProcessAll()
           
 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

isProcessAll

public boolean isProcessAll()

setProcessAll

public void setProcessAll(boolean processAll)

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)


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