org.apache.hadoop.chukwa.datacollection.writer
Interface ChukwaWriter
- All Known Implementing Classes:
- ConsoleWriter, Dedup, ExtractorWriter, FilePerPostWriter, InMemoryWriter, LocalWriter, NullWriter, PipelineableWriter, PipelineStageWriter, SeqFileWriter, SocketTeeWriter
public interface ChukwaWriter
Method Summary |
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. |
COMMIT_OK
static final ChukwaWriter.CommitStatus COMMIT_OK
COMMIT_FAIL
static final ChukwaWriter.CommitStatus COMMIT_FAIL
init
void init(org.apache.hadoop.conf.Configuration c)
throws WriterException
- Called once to initialize this writer.
- Parameters:
c
-
- Throws:
WriterException
add
ChukwaWriter.CommitStatus add(List<Chunk> chunks)
throws WriterException
- Called repeatedly with data that should be serialized.
Subclasses may assume that init() will be called before any calls to
add(), and that add() won't be called after close().
- Parameters:
chunks
-
- Returns:
-
- Throws:
WriterException
close
void close()
throws WriterException
- Called once, indicating that the writer should close files and prepare
to exit.
- Throws:
WriterException
Copyright © ${year} The Apache Software Foundation