org.apache.hadoop.chukwa.datacollection.writer
Class SeqFileWriter
java.lang.Object
org.apache.hadoop.chukwa.datacollection.writer.SeqFileWriter
- All Implemented Interfaces:
- ChukwaWriter
public class SeqFileWriter
- extends Object
- implements ChukwaWriter
This class is thread-safe -- rotate() and save() both synchronize on
this object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLE_ROTATION
public static final boolean ENABLE_ROTATION
- See Also:
- Constant Field Values
SeqFileWriter
public SeqFileWriter()
throws WriterException
- Throws:
WriterException
init
public void init(org.apache.hadoop.conf.Configuration conf)
throws WriterException
- Specified by:
init
in interface ChukwaWriter
- Throws:
WriterException
add
public void add(List<Chunk> chunks)
throws WriterException
- Specified by:
add
in interface ChukwaWriter
- Throws:
WriterException
add
public void add(Chunk chunk)
throws WriterException
- Throws:
WriterException
close
public void close()
- Specified by:
close
in interface ChukwaWriter
Copyright © ${year} The Apache Software Foundation