|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.io.LobFile.Reader
public abstract static class LobFile.Reader
Class that can read a LobFile. Create with LobFile.open().
Constructor Summary | |
---|---|
LobFile.Reader()
|
Method Summary | |
---|---|
protected void |
checkForNull(java.io.InputStream in)
Checks whether an underlying stream is present or null. |
abstract void |
close()
Closes the reader. |
protected void |
finalize()
|
abstract org.apache.hadoop.fs.Path |
getPath()
If this Reader is reading from a physical LobFile, then this returns the file path it is reading from. |
abstract long |
getRecordId()
Return the entryId of the current record to the user. |
abstract long |
getRecordLen()
Reports the length of the record to the user. |
abstract long |
getRecordOffset()
Return the byte offset at which the current record starts. |
abstract boolean |
isClosed()
|
abstract boolean |
isRecordAvailable()
|
abstract boolean |
next()
Advances to the next record in the file. |
abstract java.io.InputStream |
readBlobRecord()
|
abstract java.io.Reader |
readClobRecord()
|
abstract void |
seek(long pos)
Move the file pointer to the first available full record beginning at position 'pos', relative to the start of the file. |
abstract long |
tell()
Report the current position in the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LobFile.Reader()
Method Detail |
---|
public abstract org.apache.hadoop.fs.Path getPath()
public abstract long tell() throws java.io.IOException
java.io.IOException
public abstract void seek(long pos) throws java.io.IOException
pos
- the position to seek to or past.
java.io.IOException
public abstract boolean next() throws java.io.IOException
java.io.IOException
public abstract boolean isRecordAvailable()
public abstract long getRecordLen()
public abstract long getRecordId()
public abstract long getRecordOffset()
public abstract java.io.InputStream readBlobRecord() throws java.io.IOException
java.io.IOException
public abstract java.io.Reader readClobRecord() throws java.io.IOException
java.io.IOException
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
protected void checkForNull(java.io.InputStream in) throws java.io.IOException
in
- the stream to check for null-ness.
java.io.IOException
- if in is null.public abstract boolean isClosed()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |