public class FilePerPostWriter extends SeqFileWriter
SeqFileWriter.StatReportingTask
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus
bytesThisRotate, conf, currentFileName, currentOutputStr, currentPath, dataSize, FIXED_INTERVAL_OFFSET_OPT, fs, IF_FIXED_INTERVAL_OPT, isRunning, localHostAddr, lock, nextTimePeriodComputation, OUTPUT_DIR_OPT, outputDir, ROTATE_INTERVAL_OPT, rotateTimer, seqFileWriter, STAT_INTERVAL_SECONDS, STAT_PERIOD_OPT, statTimer, timePeriod
next
COMMIT_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.
|
protected String |
getCurrentFileName() |
protected org.apache.hadoop.fs.Path |
getCurrentPath() |
void |
init(org.apache.hadoop.conf.Configuration conf)
Called once to initialize this writer.
|
computeTimePeriod, getBytesWritten, setEnableRotationOnClose
setNextStage
public ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriter
add
in interface ChukwaWriter
add
in class SeqFileWriter
WriterException
public void close()
ChukwaWriter
close
in interface ChukwaWriter
close
in class SeqFileWriter
public void init(org.apache.hadoop.conf.Configuration conf) throws WriterException
ChukwaWriter
init
in interface ChukwaWriter
init
in class SeqFileWriter
WriterException
protected String getCurrentFileName()
protected org.apache.hadoop.fs.Path getCurrentPath()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.