|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.io.LobFile.Writer
public abstract static class LobFile.Writer
Class that writes out a LobFile. Instantiate via LobFile.create().
Constructor Summary | |
---|---|
LobFile.Writer()
|
Method Summary | |
---|---|
protected void |
checkForNull(java.io.OutputStream out)
Checks whether an underlying stream is present or null. |
abstract void |
close()
Finishes writing the LobFile and closes underlying handles. |
protected void |
finalize()
|
abstract void |
finishRecord()
Terminates the current record and writes any trailing zero-padding required by the specified record size. |
abstract org.apache.hadoop.fs.Path |
getPath()
If this Writer is writing to a physical LobFile, then this returns the file path it is writing to. |
abstract long |
tell()
Report the current position in the output file. |
abstract java.io.OutputStream |
writeBlobRecord(long len)
Declares a new BLOB record to be written to the file. |
abstract java.io.Writer |
writeClobRecord(long len)
Declares a new CLOB record to be written to the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LobFile.Writer()
Method Detail |
---|
public abstract org.apache.hadoop.fs.Path getPath()
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public abstract void finishRecord() throws java.io.IOException
java.io.IOException
public abstract java.io.OutputStream writeBlobRecord(long len) throws java.io.IOException
len
- the "claimed" number of bytes that will be written to
this record. The actual number of bytes may differ.
java.io.IOException
public abstract java.io.Writer writeClobRecord(long len) throws java.io.IOException
len
- the claimed number of characters that will be written to
this record. The actual number of characters may differ.
java.io.IOException
public abstract long tell() throws java.io.IOException
java.io.IOException
protected void checkForNull(java.io.OutputStream out) throws java.io.IOException
out
- the stream to check for null-ness.
java.io.IOException
- if out is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |