public class SeqFileWriter extends PipelineableWriter implements ChukwaWriter
| Modifier and Type | Class and Description |
|---|---|
class |
SeqFileWriter.StatReportingTask |
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus| Modifier and Type | Field and Description |
|---|---|
static String |
FIXED_INTERVAL_OFFSET_OPT |
static String |
IF_FIXED_INTERVAL_OPT |
String |
localHostAddr |
static String |
OUTPUT_DIR_OPT |
static String |
ROTATE_INTERVAL_OPT |
static String |
STAT_PERIOD_OPT |
COMMIT_FAIL, COMMIT_OK| Constructor and Description |
|---|
SeqFileWriter() |
| 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.
|
long |
getBytesWritten() |
void |
init(org.apache.hadoop.conf.Configuration conf)
Called once to initialize this writer.
|
static void |
setEnableRotationOnClose(boolean b) |
setNextStagepublic static final String STAT_PERIOD_OPT
public static final String ROTATE_INTERVAL_OPT
public static final String IF_FIXED_INTERVAL_OPT
public static final String FIXED_INTERVAL_OFFSET_OPT
public static final String OUTPUT_DIR_OPT
public String localHostAddr
public long getBytesWritten()
public void init(org.apache.hadoop.conf.Configuration conf)
throws WriterException
ChukwaWriterinit in interface 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 datapublic void close()
ChukwaWriterclose in interface ChukwaWriterpublic static void setEnableRotationOnClose(boolean b)
Copyright © 2016 Apache Software Foundation. All Rights Reserved.