public class DupeCountProcessor extends WrappedProcessor
Modifier and Type | Field and Description |
---|---|
static String |
dupecount |
protected HashMap<String,org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack> |
dupeHashmap |
protected boolean |
showDupeCount |
inner
Constructor and Description |
---|
DupeCountProcessor(BaseProcessor output,
boolean showDupeCount) |
Modifier and Type | Method and Description |
---|---|
protected org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack |
createDupeTrack() |
protected void |
handleLine(org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack counter,
org.archive.format.cdx.CDXLine line,
boolean isDupe) |
org.archive.format.cdx.FieldSplitFormat |
modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
Return output format (list of fields), given input format
format . |
int |
writeLine(org.archive.format.cdx.CDXLine line)
Process
line . |
begin, end, trackLine, writeResumeKey
protected HashMap<String,org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack> dupeHashmap
protected boolean showDupeCount
public static final String dupecount
public DupeCountProcessor(BaseProcessor output, boolean showDupeCount)
protected org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack createDupeTrack()
protected void handleLine(org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack counter, org.archive.format.cdx.CDXLine line, boolean isDupe)
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.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 WrappedProcessor
format
- input formatCDXFieldConstants
Copyright © 2005–2015 IIPC. All rights reserved.