public class FilePerPostWriter extends SeqFileWriter
SeqFileWriter.StatReportingTaskChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.hadoop.conf.Configuration | conf | 
| protected String | currentFileName | 
| protected org.apache.hadoop.fs.Path | currentPath | 
| protected org.apache.hadoop.fs.FileSystem | fs | 
| protected String | outputDir | 
bytesThisRotate, currentOutputStr, dataSize, ENABLE_ROTATION_ON_CLOSE, FIXED_INTERVAL_OFFSET_OPT, IF_FIXED_INTERVAL_OPT, isRunning, localHostAddr, lock, nextTimePeriodComputation, OUTPUT_DIR_OPT, ROTATE_INTERVAL_OPT, rotateTimer, seqFileWriter, STAT_INTERVAL_SECONDS, STAT_PERIOD_OPT, statTimer, timePeriodnextCOMMIT_FAIL, COMMIT_OK| Constructor and Description | 
|---|
| FilePerPostWriter() | 
| 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. | 
computeTimePeriod, getBytesWrittensetNextStageprotected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.conf.Configuration conf
protected String outputDir
protected org.apache.hadoop.fs.Path currentPath
protected String currentFileName
public ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriteradd in interface ChukwaWriteradd in class SeqFileWriterWriterExceptionpublic void close()
ChukwaWriterclose in interface ChukwaWriterclose in class SeqFileWriterpublic void init(org.apache.hadoop.conf.Configuration conf)
          throws WriterException
ChukwaWriterinit in interface ChukwaWriterinit in class SeqFileWriterWriterExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.