public class ChukwaParquetWriter extends PipelineableWriter
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT_DIR_OPT |
COMMIT_FAIL, COMMIT_OK| Constructor and Description |
|---|
ChukwaParquetWriter() |
ChukwaParquetWriter(org.apache.hadoop.conf.Configuration c) |
| 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 |
getDelayForFixedInterval(long currentTime,
long rotateInterval,
long offsetInterval)
Calculates delay for scheduling the next rotation in case of
FixedTimeRotatorScheme.
|
void |
init(org.apache.hadoop.conf.Configuration c)
Called once to initialize this writer.
|
setNextStagepublic static final String OUTPUT_DIR_OPT
public ChukwaParquetWriter()
throws WriterException
WriterExceptionpublic ChukwaParquetWriter(org.apache.hadoop.conf.Configuration c)
throws WriterException
WriterExceptionpublic void init(org.apache.hadoop.conf.Configuration c)
throws WriterException
ChukwaWriterc - is Chukwa configurationWriterException - if error writing datapublic void close()
throws WriterException
ChukwaWriterWriterException - 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 long getDelayForFixedInterval(long currentTime,
long rotateInterval,
long offsetInterval)
currentTime - - the current timestamprotateInterval - - chukwaCollector.rotateIntervaloffsetInterval - - chukwaCollector.fixedTimeIntervalOffsetCopyright © 2016 Apache Software Foundation. All Rights Reserved.