@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix","Configuration"}) public class SequenceFileLogReader extends ReaderBase
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.io.SequenceFile.Reader |
reader |
compressionContext, conf, edit, emptyCompressionContext, fileLength, fs, path, trailer, trailerWarnSize| Constructor and Description |
|---|
SequenceFileLogReader() |
| Modifier and Type | Method and Description |
|---|---|
protected IOException |
addFileInfoToException(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(String cellCodecClsName)
Initializes the compression after the shared stuff has been initialized.
|
protected String |
initReader(org.apache.hadoop.fs.FSDataInputStream stream)
Initializes the log reader with a particular stream (may be null).
|
protected boolean |
readNext(HLog.Entry e)
Read next entry.
|
void |
reset() |
protected void |
seekOnFs(long pos)
Performs a filesystem-level seek to a certain position in an underlying file.
|
getWALTrailer, init, next, next, seekpublic void close()
throws IOException
IOExceptionpublic long getPosition()
throws IOException
IOExceptionpublic void reset()
throws IOException
IOExceptionprotected String initReader(org.apache.hadoop.fs.FSDataInputStream stream) throws IOException
ReaderBaseinitReader in class ReaderBaseIOExceptionprotected void initAfterCompression(String cellCodecClsName) throws IOException
ReaderBaseinitAfterCompression in class ReaderBasecellCodecClsName - class name of cell CodecIOExceptionprotected void initAfterCompression()
throws IOException
ReaderBaseinitAfterCompression in class ReaderBaseIOExceptionprotected boolean hasCompression()
hasCompression in class ReaderBaseprotected boolean hasTagCompression()
hasTagCompression in class ReaderBaseprotected boolean readNext(HLog.Entry e) throws IOException
ReaderBasereadNext in class ReaderBasee - The entry to read into.IOExceptionprotected void seekOnFs(long pos)
throws IOException
ReaderBaseseekOnFs in class ReaderBaseIOExceptionprotected IOException addFileInfoToException(IOException ioe) throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.