com.cloudera.sqoop.io
Class SplittableBufferedWriter
java.lang.Object
java.io.Writer
java.io.BufferedWriter
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 |
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 |
LOG
public static final org.apache.commons.logging.Log LOG
SplittableBufferedWriter
public SplittableBufferedWriter(SplittingOutputStream splitOutputStream)
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.