com.cloudera.sqoop.io
Class SplittableBufferedWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter
          extended by com.cloudera.sqoop.io.SplittableBufferedWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class SplittableBufferedWriter
extends java.io.BufferedWriter

A BufferedWriter implementation that wraps around a SplittingOutputStream and allows splitting of the underlying stream. Splits occur at allowSplit() calls, or newLine() calls.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SplittableBufferedWriter(SplittingOutputStream splitOutputStream)
           
 
Method Summary
 void allowSplit()
           
 void newLine()
           
 
Methods inherited from class java.io.BufferedWriter
close, flush, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

SplittableBufferedWriter

public SplittableBufferedWriter(SplittingOutputStream splitOutputStream)
Method Detail

newLine

public void newLine()
             throws java.io.IOException
Overrides:
newLine in class java.io.BufferedWriter
Throws:
java.io.IOException

allowSplit

public void allowSplit()
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010 Cloudera, Inc.