org.apache.flume.sink.hdfs
Class BucketWriter

java.lang.Object
  extended by org.apache.flume.sink.hdfs.BucketWriter

public class BucketWriter
extends Object


Constructor Summary
BucketWriter(long rollInt, long rollSz, long rollCnt, long bSize, Context ctx)
           
 
Method Summary
 void abort()
           
 void append(Event e)
           
 void close()
           
 void flush()
           
 String getFilePath()
           
 boolean isBatchComplete()
           
 void open()
           
 void open(String fPath, CompressionCodec codec, CompressionType cType, HDFSWriter hWriter, FlumeFormatter fmt)
           
 void open(String fPath, HDFSWriter hWriter, FlumeFormatter fmt)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BucketWriter

public BucketWriter(long rollInt,
                    long rollSz,
                    long rollCnt,
                    long bSize,
                    Context ctx)
             throws IOException
Throws:
IOException
Method Detail

open

public void open()
          throws IOException
Throws:
IOException

open

public void open(String fPath,
                 HDFSWriter hWriter,
                 FlumeFormatter fmt)
          throws IOException
Throws:
IOException

open

public void open(String fPath,
                 CompressionCodec codec,
                 CompressionType cType,
                 HDFSWriter hWriter,
                 FlumeFormatter fmt)
          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

abort

public void abort()

flush

public void flush()
           throws IOException
Throws:
IOException

append

public void append(Event e)
            throws IOException
Throws:
IOException

getFilePath

public String getFilePath()

toString

public String toString()
Overrides:
toString in class Object

isBatchComplete

public boolean isBatchComplete()


Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.