protected abstract static class GlobalProcessor.UniqueDuplicateCount extends GlobalProcessor
GlobalProcessor.UniqueOnly
,
GlobalProcessor.DuplicateOnly
and GlobalProcessor.Count
GlobalProcessor.Count, GlobalProcessor.DuplicateOnly, GlobalProcessor.Normal, GlobalProcessor.UniqueDuplicateCount, GlobalProcessor.UniqueOnly
lineToCount
Constructor and Description |
---|
UniqueDuplicateCount(UniqCommand command,
ExecutionContext context,
LineProcessor output) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Indicates that this line processing task is complete and can finished.
|
protected boolean |
processLine(Line line,
LineProcessor output) |
protected abstract void |
writeLine(Line line,
long count,
int maxCountDigits,
LineProcessor output) |
processLine
getArguments, getCommand, getContext, getOutput
public UniqueDuplicateCount(UniqCommand command, ExecutionContext context, LineProcessor output)
protected boolean processLine(Line line, LineProcessor output)
processLine
in class UniqProcessor
public void finish()
LineProcessor
Simple output devices usually perform a flush
operation in this
method. More complex commands may perform the real operation in this
method, for instance write the total count of lines or words to the
target file or stream.
protected abstract void writeLine(Line line, long count, int maxCountDigits, LineProcessor output)
Copyright © 2024. All rights reserved.