public class Dedup extends PipelineableWriter
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus
COMMIT_FAIL, COMMIT_OK
Constructor and Description |
---|
Dedup() |
Modifier and Type | Method and Description |
---|---|
ChukwaWriter.CommitStatus |
add(List<Chunk> chunks)
Called repeatedly with data that should be serialized.
|
void |
close()
Called once, indicating that the writer should close files and prepare
to exit.
|
void |
init(org.apache.hadoop.conf.Configuration c)
Called once to initialize this writer.
|
setNextStage
public ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriter
add
in interface ChukwaWriter
add
in class PipelineableWriter
chunks
- is a list of data to sendWriterException
- if error writing datapublic void close() throws WriterException
ChukwaWriter
WriterException
- if error writing datapublic void init(org.apache.hadoop.conf.Configuration c) throws WriterException
ChukwaWriter
c
- is Chukwa configurationWriterException
- if error writing dataCopyright © 2016 Apache Software Foundation. All Rights Reserved.