org.apache.hadoop.chukwa.datacollection.writer
Class SeqFileWriter

java.lang.Object
  extended by 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.


Field Summary
static boolean ENABLE_ROTATION
           
 
Constructor Summary
SeqFileWriter()
           
 
Method Summary
 void add(Chunk chunk)
           
 void add(List<Chunk> chunks)
           
 void close()
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLE_ROTATION

public static final boolean ENABLE_ROTATION
See Also:
Constant Field Values
Constructor Detail

SeqFileWriter

public SeqFileWriter()
              throws WriterException
Throws:
WriterException
Method Detail

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