@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix","Configuration"}) public class SequenceFileLogReader extends ReaderBase
| Modifier and Type | Field and Description |
|---|---|
protected SequenceFile.Reader |
reader |
compressionContext, conf, edit, emptyCompressionContext, fileLength, fs, path| Constructor and Description |
|---|
SequenceFileLogReader() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.IOException |
addFileInfoToException(java.io.IOException ioe) |
void |
close() |
long |
getPosition() |
protected boolean |
hasCompression() |
protected boolean |
hasTagCompression() |
protected void |
initAfterCompression()
Initializes the compression after the shared stuff has been initialized.
|
protected void |
initAfterCompression(java.lang.String cellCodecClsName)
Initializes the compression after the shared stuff has been initialized.
|
protected java.lang.String |
initReader(FSDataInputStream stream)
Initializes the log reader with a particular stream (may be null).
|
protected boolean |
readNext(WAL.Entry e)
fill in the passed entry with teh next key/value.
|
void |
reset() |
protected void |
seekOnFs(long pos)
Performs a filesystem-level seek to a certain position in an underlying file.
|
init, next, next, seekpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic long getPosition()
throws java.io.IOException
java.io.IOExceptionpublic void reset()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String initReader(FSDataInputStream stream)
throws java.io.IOException
ReaderBaseinitReader in class ReaderBasejava.io.IOExceptionprotected void initAfterCompression(java.lang.String cellCodecClsName)
throws java.io.IOException
ReaderBaseinitAfterCompression in class ReaderBasecellCodecClsName - class name of cell Codecjava.io.IOExceptionprotected void initAfterCompression()
throws java.io.IOException
ReaderBaseinitAfterCompression in class ReaderBasejava.io.IOExceptionprotected boolean hasCompression()
hasCompression in class ReaderBaseprotected boolean hasTagCompression()
hasTagCompression in class ReaderBaseprotected boolean readNext(WAL.Entry e) throws java.io.IOException
HLogKey for the key.readNext in class ReaderBasee - The entry to read into.java.io.IOExceptionprotected void seekOnFs(long pos)
throws java.io.IOException
ReaderBaseseekOnFs in class ReaderBasejava.io.IOExceptionprotected java.io.IOException addFileInfoToException(java.io.IOException ioe)
throws java.io.IOException
java.io.IOException