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, writeMiscLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeLine
public CDXToSearchResultWriter(CDXQuery query)
public void begin()
BaseProcessor
begin()
on nested processor.public void writeResumeKey(String resumeKey)
BaseProcessor
CDXWriter
should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey)
on nested processor.public void end()
BaseProcessor
end()
on nested processor.public abstract SearchResults getSearchResults()
public CDXQuery getQuery()
public void printError(String msg)
printError
in class CDXWriter
public String getErrorMsg()
public org.archive.format.cdx.FieldSplitFormat modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
BaseProcessor
format
.
Intermediaries should call modifyOutputFormat(format)
on nested
processor first, then make appropriate changes to it if they add/remove
fields.modifyOutputFormat
in interface BaseProcessor
modifyOutputFormat
in class CDXWriter
format
- input formatCDXFieldConstants
Copyright © 2005–2015 IIPC. All rights reserved.