dk.netarkivet.wayback.batch.copycode
Class NetarchiveSuiteWARCRecordToSearchResultAdapter
java.lang.Object
dk.netarkivet.wayback.batch.copycode.NetarchiveSuiteWARCRecordToSearchResultAdapter
- All Implemented Interfaces:
- org.archive.wayback.util.Adapter<org.archive.io.warc.WARCRecord,org.archive.wayback.core.CaptureSearchResult>
public class NetarchiveSuiteWARCRecordToSearchResultAdapter
- extends java.lang.Object
- implements org.archive.wayback.util.Adapter<org.archive.io.warc.WARCRecord,org.archive.wayback.core.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.
This is cut'n'pasted from
org.archive.wayback.resourcestore.indexer.WARCRecordToSearchResultAdapter
Method Summary |
org.archive.wayback.core.CaptureSearchResult |
adapt(org.archive.io.warc.WARCRecord rec)
|
org.archive.wayback.resourcestore.indexer.HTTPRecordAnnotater |
getAnnotater()
|
org.archive.wayback.UrlCanonicalizer |
getCanonicalizer()
|
boolean |
isProcessAll()
|
void |
setAnnotater(org.archive.wayback.resourcestore.indexer.HTTPRecordAnnotater annotater)
|
void |
setCanonicalizer(org.archive.wayback.UrlCanonicalizer canonicalizer)
|
void |
setProcessAll(boolean processAll)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetarchiveSuiteWARCRecordToSearchResultAdapter
public NetarchiveSuiteWARCRecordToSearchResultAdapter()
adapt
public org.archive.wayback.core.CaptureSearchResult adapt(org.archive.io.warc.WARCRecord rec)
- Specified by:
adapt
in interface org.archive.wayback.util.Adapter<org.archive.io.warc.WARCRecord,org.archive.wayback.core.CaptureSearchResult>
getCanonicalizer
public org.archive.wayback.UrlCanonicalizer getCanonicalizer()
setCanonicalizer
public void setCanonicalizer(org.archive.wayback.UrlCanonicalizer canonicalizer)
isProcessAll
public boolean isProcessAll()
setProcessAll
public void setProcessAll(boolean processAll)
getAnnotater
public org.archive.wayback.resourcestore.indexer.HTTPRecordAnnotater getAnnotater()
- Returns:
- the annotater
setAnnotater
public void setAnnotater(org.archive.wayback.resourcestore.indexer.HTTPRecordAnnotater annotater)
- Parameters:
annotater
- the annotater to set