public abstract class CDXToSearchResultWriter extends CDXWriter
| Modifier and Type | Field and Description |
|---|---|
protected String |
msg |
protected CDXQuery |
query |
| Constructor and Description |
|---|
CDXToSearchResultWriter(CDXQuery query) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
This method will be called just before looping over
the sequence of CDX lines.
|
void |
end()
Called at the end.
|
String |
getErrorMsg() |
CDXQuery |
getQuery() |
abstract SearchResults |
getSearchResults() |
org.archive.format.cdx.FieldSplitFormat |
modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
Return output format (list of fields), given input format
format. |
void |
printError(String msg) |
void |
writeResumeKey(String resumeKey)
Write resumption key.
|
close, isAborted, printNumPages, serverError, setContentType, setMaxLines, trackLine, writeMiscLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteLinepublic CDXToSearchResultWriter(CDXQuery query)
public void begin()
BaseProcessorbegin()
on nested processor.public void writeResumeKey(String resumeKey)
BaseProcessorCDXWriter should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey) on nested processor.public void end()
BaseProcessorend()
on nested processor.public abstract SearchResults getSearchResults()
public CDXQuery getQuery()
public void printError(String msg)
printError in class CDXWriterpublic String getErrorMsg()
public org.archive.format.cdx.FieldSplitFormat modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
BaseProcessorformat.
Intermediaries should call modifyOutputFormat(format) on nested
processor first, then make appropriate changes to it if they add/remove
fields.modifyOutputFormat in interface BaseProcessormodifyOutputFormat in class CDXWriterformat - input formatCopyright © 2005–2017 IIPC. All rights reserved.