org.apache.hadoop.hbase.regionserver.wal
Class SequenceFileLogReader
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.ReaderBase
org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader
- All Implemented Interfaces:
- HLog.Reader
@InterfaceAudience.Private
public class SequenceFileLogReader
- extends ReaderBase
Field Summary |
protected org.apache.hadoop.io.SequenceFile.Reader |
reader
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected org.apache.hadoop.io.SequenceFile.Reader reader
SequenceFileLogReader
public SequenceFileLogReader()
close
public void close()
throws IOException
- Throws:
IOException
getPosition
public long getPosition()
throws IOException
- Throws:
IOException
reset
public void reset()
throws IOException
- Throws:
IOException
initReader
protected void initReader(org.apache.hadoop.fs.FSDataInputStream stream)
throws IOException
- Description copied from class:
ReaderBase
- Initializes the log reader with a particular stream (may be null).
Reader assumes ownership of the stream if not null and may use it. Called once.
- Specified by:
initReader
in class ReaderBase
- Throws:
IOException
initAfterCompression
protected void initAfterCompression()
throws IOException
- Description copied from class:
ReaderBase
- Initializes the compression after the shared stuff has been initialized. Called once.
- Specified by:
initAfterCompression
in class ReaderBase
- Throws:
IOException
hasCompression
protected boolean hasCompression()
- Specified by:
hasCompression
in class ReaderBase
- Returns:
- Whether compression is enabled for this log.
readNext
protected boolean readNext(HLog.Entry e)
throws IOException
- Description copied from class:
ReaderBase
- Read next entry.
- Specified by:
readNext
in class ReaderBase
- Parameters:
e
- The entry to read into.
- Returns:
- Whether there was anything to read.
- Throws:
IOException
seekOnFs
protected void seekOnFs(long pos)
throws IOException
- Description copied from class:
ReaderBase
- Performs a filesystem-level seek to a certain position in an underlying file.
- Specified by:
seekOnFs
in class ReaderBase
- Throws:
IOException
addFileInfoToException
protected IOException addFileInfoToException(IOException ioe)
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.