public class HBaseWriter extends PipelineableWriter
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatusCOMMIT_FAIL, COMMIT_OK| Constructor and Description |
|---|
HBaseWriter() |
HBaseWriter(boolean reportStats) |
HBaseWriter(ChukwaConfiguration conf,
org.apache.hadoop.conf.Configuration hconf) |
| 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 conf)
Called once to initialize this writer.
|
setNextStagepublic HBaseWriter()
throws IOException
IOExceptionpublic HBaseWriter(boolean reportStats)
throws IOException
IOExceptionpublic HBaseWriter(ChukwaConfiguration conf, org.apache.hadoop.conf.Configuration hconf) throws IOException
IOExceptionpublic void close()
ChukwaWriterpublic void init(org.apache.hadoop.conf.Configuration conf)
throws WriterException
ChukwaWriterconf - is Chukwa configurationWriterException - if error writing datapublic ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriteradd in interface ChukwaWriteradd in class PipelineableWriterchunks - is a list of data to sendWriterException - if error writing dataCopyright © 2016 Apache Software Foundation. All Rights Reserved.