protected abstract static class AdjacentProcessor.UniqueDuplicateCount extends AdjacentProcessor
AdjacentProcessor.UniqueOnly
,
AdjacentProcessor.DuplicateOnly
and AdjacentProcessor.Count
AdjacentProcessor.Count, AdjacentProcessor.DuplicateOnly, AdjacentProcessor.Normal, AdjacentProcessor.UniqueDuplicateCount, AdjacentProcessor.UniqueOnly
curLine
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,
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, LineProcessor output)
Copyright © 2024. All rights reserved.