public class ClosestTimestampSorted extends WrappedProcessor
inner
Constructor and Description |
---|
ClosestTimestampSorted(BaseProcessor output,
String target,
int limit) |
Modifier and Type | Method and Description |
---|---|
protected Long |
convTimestamp(String timestamp) |
void |
end()
Called at the end.
|
int |
writeLine(org.archive.format.cdx.CDXLine line)
Process
line . |
void |
writeResumeKey(String resumeKey)
Write resumption key.
|
protected int |
writeSorted() |
begin, modifyOutputFormat, trackLine
public ClosestTimestampSorted(BaseProcessor output, String target, int limit)
public int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessor
line
.writeLine
in interface BaseProcessor
writeLine
in class WrappedProcessor
line
- CDXLine
line
is sent to output, 0 otherwise.protected int writeSorted()
public void writeResumeKey(String resumeKey)
BaseProcessor
CDXWriter
should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey)
on nested processor.writeResumeKey
in interface BaseProcessor
writeResumeKey
in class WrappedProcessor
public void end()
BaseProcessor
end()
on nested processor.end
in interface BaseProcessor
end
in class WrappedProcessor
Copyright © 2005–2015 IIPC. All rights reserved.